在VC6.0的时候C++中还可以使用#include<iostream.h>,当时C++标准还没出来,现在VS2010中创建一个Win32工程想再使用#include<iostream.h>就会提示错误:fatal
error C1083: 无法打开包括文件:“iostream.h”: No such file or directory
#include<iostream.h>是C语言中比较通用的
#include<iostream>
using namespace std;
是标准C++中的写法
总结:使用#include<iostream>
using namespace std;
本文探讨了从VC6.0到VS2010,C++标准IO流的变化过程。详细介绍了在不同编译器环境下,如何正确使用C++标准库中的IO流组件,并解释了<iostream.h>与<iostream>之间的区别。

被折叠的 条评论
为什么被折叠?



