fatal error C1083: 无法打开包含文件:“iostream.h”: No such file or directory
刚开始用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
·
刚开始用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; }

GitCode 天启AI是一款由 GitCode 团队打造的智能助手,基于先进的LLM(大语言模型)与多智能体 Agent 技术构建,致力于为用户提供高效、智能、多模态的创作与开发支持。它不仅支持自然语言对话,还具备处理文件、生成 PPT、撰写分析报告、开发 Web 应用等多项能力,真正做到“一句话,让 Al帮你完成复杂任务”。
更多推荐
所有评论(0)