|

楼主 |
发表于 2005-7-15 14:55:25
|
显示全部楼层
源程序
#include <iostream>
int main()
{
cout<<"Hello,World"<<endl;
return 0;
}
错误信息
[root@localhost ~]# g++ tst.cpp
tst.cpp: In function ‘int main()’:
tst.cpp:7: 错误:‘cout’ was not declared in this scope
tst.cpp:7: 错误:‘endl’ was not declared in this scope
[root@localhost ~]#
原来有很多错误信息,现在我用了更简单的程序 |
|