js_reverse/cpp/HelloWorld.cpp
2025-03-18 23:39:54 +08:00

27 lines
603 B
C++

//
// Created by aiyin on 2024/3/21.
//
// 头文件 导入 iostream 库
#include<iostream>
// 主函数
//int main(){
// // std 命名空间,指明 cout 所指的命名空间
// std::cout << "Hello World" << std::endl;
//}
// 添加了 using namespace std; 就可以省略 std 命名空间
using namespace std;
//int main(){
// // std 命名空间,指明 cout输出 所指的命名空间
// cout << "Hello World" << endl;
//}
// cin 等待键盘输入
int main(){
// std 命名空间,指明 cout输出 所指的命名空间
cout << "Hello World" << endl;
cin.get();
}