刚开始用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;
}