一个简单的hello world
代码: 全选
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
代码: 全选
EXECUTING:
/home/xxzc/test/src/main.o
----------------------------------------------
/home/xxzc/test/src/main.o: 1: Syntax error: word unexpected (expecting ")")
----------------------------------------------
Program exited successfully with errcode (2)
Press the Enter key to close this terminal ...
另:编译出的main.o A并不自动加执行权限,需要自己手动加,有什么好办法没有,是不是我什么地方出错了?
谢谢!