0
点赞
收藏
分享

微信扫一扫

一个简单c++Hello world程序

#include <iostream>
int main(int argc,char* argv[])
{
std::cout<<"Hello world!"<<std::endl;
return 0;
}

编译命令:

g++ -std=c++11 -g -o hello first.cpp

会生成一个hello可执行文件
执行命令:

./hello

输出:

Hello world!


举报

相关推荐

0 条评论