1.std 名称空间 ::作用域操作符 cout 名称
eg: std::cout << "Hello World!" <<std::endl;
或者可在前面进行声明: using std::cout;
2.头文件中不能使用using声明进行简化。
1.std 名称空间 ::作用域操作符 cout 名称
eg: std::cout << "Hello World!" <<std::endl;
或者可在前面进行声明: using std::cout;
2.头文件中不能使用using声明进行简化。