[Cpp primer] Namespace using Declarations

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.

 

posted @ 2017-02-20 21:40  KennyRom  阅读(173)  评论(0编辑  收藏  举报