c++版hello word 代码 #include "iostream" //包含c++的头文件 iostream using namespace std; //使用命名空间 std标准的命名空间(这个命名空间中定义了很多标准定义) void main() { //cout 标准输入 黑屏幕 //endl 换行 \n //在小黑屏中打印并换行 cout << "hello word" << endl; system("pause"); } 运行结果