新写一个C++的HelloWorld程序

学任何编程语言都是从HelloWorld开始。

最近在学习C++,我也来写一个C++版的。

#include "pch.h" #include <iostream> using std::cout; using std::endl;
int main() {
cout << "Hello World!" << endl; return 0; }

/<iostream>

Visual Studio下面运行成功:

新写一个C++的HelloWorld程序


分享到:


相關文章: