Hello World!

我的第一个博客,就以 hello world 开始吧!

1 #include<iostream>
2 
3 using namespace std;
4 
5 int main()
6 {
7     cout<<"hello world!!!"<<endl;
8     return 0;
9 }

在Linux系统上,当前路径下打开终端,输入:g++ test.cpp -o test 回车

继续运行:./test

终端上就可以输出hello world!!!啦

 

如果是在Windows系统上,建议下载Git的Windows版本,因为自带很多库,省的自己一个个下载,运行顺序如下:

 

以上

感谢阅读

posted @ 2019-05-15 11:21  飞-八月未央  阅读(78)  评论(0)    收藏  举报