无法打开包含文件'iostream.h' [英] unable to open include file 'iostream.h'
本文介绍了无法打开包含文件'iostream.h'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hii,
编译简单程序时出错,因为无法打开包含文件''iostream.h''
和''无法打开包含文件conio.h''。
请尽快帮助我...
hii,
I am getting an error while compiling a simple program as unable to open include file ''iostream.h''
and ''unable to open include file conio.h''.
please help me out as soon as possible...
推荐答案
尝试:
Hi,
Try:
#include <iostream>
文件名不是 iostream.h
,但 iostream
如果您不使用Windows,则不能包含 conio.h
,因为 conio.h
是特定于Windows的。
The file name isn''t iostream.h
, but iostream
And if you don''t use Windows, you can''t include conio.h
, because conio.h
is Windows-specific.
您没有说出您使用的是哪个版本的编译器,但在某一点上(在Windows上),要包含的文件是iostream.h,然后编译器更改允许i ostream.h或iostream,然后第二次编译器更新需要iostream并且不允许iostream.h。我不记得确切的版本更改,但我相信它们发生在VS6或Visual Studio编译器附近。
我怀疑你有一些非常古老的来源代码(即2002或更早版本),只需更新一下。
解决方案#1填写这些细节......
You didn''t say what version of the compiler you were using, but at one point (on Windows), the file to include was "iostream.h", then a compiler change allowed either "iostream.h" or "iostream", then a second compiler update required "iostream" and disallowed "iostream.h". I don''t recall the exact version changes but I believe they occurred around VS6 or thereabouts for the Visual Studio compiler.
I suspect that you have some really old source code (ie. 2002 or older), and just need to update it a bit.
Solution #1 fills in these details...
这篇关于无法打开包含文件'iostream.h'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文