Chinaunix

标题: 为什么说 找不到 "iostream.h"? [打印本页]

作者: hothearter    时间: 2003-03-01 16:12
标题: 为什么说 找不到 "iostream.h"?
#include <iostream.h>;

void main()
{
cout<<"hello world"<<endl;
}


结果:


cout is undefined
end is undefined
作者: foxmanzj    时间: 2003-03-01 17:29
标题: 为什么说 找不到 "iostream.h"?
你用的是什么编译器啊,你没有把系统包含的库设置正确。
作者: Goodfriend    时间: 2003-03-01 19:36
标题: 为什么说 找不到 "iostream.h"?
在C++中,头文件不以.h结尾
将第一句改为:#include <iostream>;
作者: 无双    时间: 2003-03-02 09:38
标题: 为什么说 找不到 "iostream.h"?
是使用gcc
还是
g++

c++ 程序应该使用c++编译

如果使用include <iostream>;的话
要跟一句
using namespace std;




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2