C++中iostream和iostream.h有什么区别?
#include 是非标准输入输出流,#include 是标准输入输出流C++中为了避免名字的冲突,特别引入了“名字空间的定义”,即namespace当代码中用时,输出可直接引用cout继承C语言的标准库文件,未引入名字空间定义,所以可直接使用。当代码中引入时,引入std;有以下方法1、using namespace std;cout2、using std::c
原创
2017-09-03 16:04:39 ·
1789 阅读 ·
0 评论