Microsoft Visual C++ Windows Applications by Example
上QQ阅读APP看书,第一时间看更新

The First Program

The execution of a program always starts with the function main. Below is a program that prints the text Hello, World! on the screen.

#include <iostream>
using namespace std;

void main()
{
  cout << "Hello, World!" << endl;
}