using namespace std;

using namespace std;告诉编译器这个文件中包含C++标准库。若是没有使用,那么库函数中的每个关键字都要有前缀std::表明它的范围;using语句的使用是代码更加简洁。
图片: using namespace std;

相关文章: