If we want to use cin in the standard library, we need to

std::cin

 To simplify this work, we can do like this

using namespace::name;

  

* Headers should not include using Declarations

Why?

The reason is that the contents of a header are copied into the including program's text. It's likely to encounter unexpected name conflicts.

 

相关文章:

  • 2021-05-28
  • 2021-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-12-11
猜你喜欢
  • 2022-03-01
  • 2021-10-30
  • 2021-06-21
  • 2021-06-18
  • 2021-10-21
  • 2022-12-23
  • 2021-07-24
相关资源
相似解决方案