刚开始用Visual studio.net 2003,一个这样的例子:
新建了一个win 32项目:
#include "stdafx.h"
#include<iostream.h>
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"hello"<<endl;
return 0;
}
生成时产生提示:
fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
问题补充:
Thank you! #include<iostream.h> using namespace std; 改为: #include<iostream> using namespace std; 生成成功了! 谢谢!
================================================
iostream.h已经不被.net支持了,你要用的话加上using namespace std; #include "stdafx.h" #include<iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout<<"hello"<<endl; return 0; }
解决iostream.h错误
本文记录了在使用Visual Studio .NET 2003时遇到的一个典型编译错误:使用iostream.h导致fatal error C1083。通过将iostream.h替换为iostream并添加using namespace std;解决了问题。
7080

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



