|
从 gnu gcc 主页看到
This question is asked approx. 5 times per week. Standard C++ Library
names are on namespace std. So you need std::cout, std::vector,
std::endl, std::sort and so on.
还是不会。
#include <iostream>
namespace std
int main(void)
{
cout << "hello, world" << endl;
return 0;
}
结果
# gcc -o hello hello.cpp
hello.cpp:4: error: syntax error before `int'
??? |
|