#include<bits/stdc++.h> //头文件
using namespace std; //命名空间
int main(){
cout<<"hello world"<<endl;
//这句话就是输出hello world,其中cout是一个对象
//而<<被重载了,endl代表\n,这些东西都被输出到cout对象中
system("pause");//按键继续
retrun 0;//程序结束
}
- 以上就是hello world c++输出教程