如何在云服务器ubuntu环境上运行c++程序

如何在云服务器ubuntu环境上运行c++程序,第1张

perform the upcoming commands in the terminal(system>>accessory>>terminal)
$ 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
我用的是小鸟云的服务器,访问流畅,性能稳定。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zz/10791207.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-11
下一篇2023-05-11

发表评论

登录后才能评论

评论列表(0条)

    保存