#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 ~]#
使用道具 举报
Post by mayagamer 源程序 错误信息 原来有很多错误信息,现在我用了更简单的程序
using namespace std; // NOTE
本版积分规则 发表回复 回帖后跳转到最后一页