使用标准库的名字需要独立的using声明
例如:

using namespace std;
using std:: cout;
int main()
{
cout << ...;
}


头文件一般不得包含using声明
因为头文件中的内容会拷贝到每个调用它的文件中,容易造成命名冲突。