本文主要是介绍iostream.h找不到问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
: #include <iostream.h> class Point { public: int x; int y; }; void main() { Point pt; pt.x=5; pt.y=5; cout<<pt.x<<endl<<pt.y<<endl; } 编译错误:fatal error C1083: 无法打开包括文件:"iostream.h": No such file or directory
解决方法:
#include<iostream.h>
修改为:
#include<iostream>
using namespace std;
原因:
iostream.h是老版编译器的头文件(VC6.0可用),新版本编译器,stl升级了,STL库没有.h扩展名。
这篇关于iostream.h找不到问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!