
$ sudo apt-get install build-essential
# waiting
$ mkdir cpp
$ cd cpp
$ vim testcpp
//~ edit testcpp with vim or other editor like the upcoming lines
#include <iostream>
using namespace std;
int
main()
{
cout<<"hello, world"<<endl;
return 0;
}
$ g++ testcpp -o test
$ ls
testcpp test
$ /test
$ hello, world
for more details, you could visit this page I ever edited
我用的是小鸟云的服务器,访问流畅,性能稳定。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)