(1)#include是C++头文件库,标准输入输出流;
#include是C头文件库,非标准输入输出流;
(2)因为C++有一部分继承了C,所以保留了这种写法;
(3)当代码中用<iostream.h>时,输出可直接引用cout<<x;
当使用时,引入std::有以下方法:
1.
using namespace std;
cout<<x;
2.
using std::cout;
cout<<x;
3.
std::cout<<x;
C++ iostream和iostream.h的
最新推荐文章于 2024-01-23 18:43:21 发布