#include //通用io操作包含的头文件 using namespace std;//指定命名空间 int main() //main函数为程序的入口点 { cout << "Hello World!" << endl; return 0; }
#include //指定命名空间的写法 int main() { std::cout << "Hello World!" << std::endl; std::cin.get(); return 0; }