c++ 命名空间的using声明

1.std 名称空间  ::作用域操作符  cout 名称

eg: std::cout << "Hello World!" <<std::endl;

或者可在前面进行声明: using std::cout;

2.头文件中不能使用using声明进行简化。


猜你喜欢

转载自blog.csdn.net/qq_35050439/article/details/80901896
今日推荐