我用的是redhat linux8.0 personal (简体中文版)。
我编了第一个C++程序。
[code:1]
$ vi hello.cpp
//以下为源代码
#include <iostream>
int main()
{
cout<<"hello world"<<endl;
return 0;
}//end of code
$ g++ -o hello hello.cpp
hello.cpp: In function `int main()':
hello.cpp:4: `cout' undeclared (first use this function)
hello.cpp:4: (Each undeclared identifier is reported only once for each
function it appears in.)
hello.cpp:4: `endl' undeclared (first use this function)
[/code:1]