error: `cout' was not declared in this scope
Linux下C++编译出错原因解析
程序:
#include
int main()
{
cout
}
编译出错:
$ g++ s.cpp -o s.out
s.cpp: In function `int main(int, char**)':
s.cpp:12: error: `cout' was not declared in this scope
s.cpp:
转载
2014-09-18 16:17:34 ·
4519 阅读 ·
0 评论