fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory

来源:互联网 发布:阿里云幕布的申请 编辑:程序博客网 时间:2024/05/22 10:18
刚开始用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; }

原创粉丝点击