|
code
#inlude<iostream>
int main()
{ cout<<"good\n";
return 0;
}
/code
[root@dale root]# g++ test2.cpp -o q
test2.cpp:1:2: invalid preprocessing directive #inlude
test2.cpp: In function `int main()':
test2.cpp:4: `cout' undeclared (first use this function)
test2.cpp:4: (Each undeclared identifier is reported only once for each
function it appears in.)
错误是在说头文件有问题?到底如何改正,谢谢各位了 |
|