ubuntu下进行C++编程
新手一枚。。。
在ubuntu下我用的vim神器进行C++编程。
首先安装 #sudo apt-get install vim
然后安装build-essential
sudo apt-get install build-essential
下面就可以进行程序编写了。
helloubuntu.cpp
#include<iostream>
int main()
{
std::cout << "hello, ubuntu" << std::endl;
return 0;
}
然后就可以g++编译
g++ helloubuntu.cpp -o helloubuntu
最后可以运行了
./helloubuntu
顺利结束。

浙公网安备 33010602011771号