提交 eaadb270 编写于 作者: I iusr

hello world

上级 10ae5ac0
hello.exe:hello.cpp
g++ -std=c++11 -o hello.exe hello.cpp
#include <iostream>
using namespace std;
int main()
{
int x[] = {1,2,3,4,5};
for(int i:x)
{
cout<<i<<" Hello world!"<<endl;
}
//
cout<<"Welcome to git_localhost"<<endl;
//
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册