标签:
1,编写代码,hello.cpp
#include <iostream> using namespace std; int main(){ cout<<"hello world"<<endl; return 0; }
2,编译
$ g++ hello.cpp -o hello
$./hello
CentOS运行C++语言的Hello World
原文地址:http://www.cnblogs.com/usa007lhy/p/5437497.html