(C++) Hello World

January 11, 2018 ยท View on GitHub

The Hello World program is a minimal example of a working program. By tradition, this minimal example displays a text similar to 'hello world'. Goal of such a program is to see if the programming environment works.

Note that this example code is not standarized, so multiple and similar variants are on the Internet.

The code base of Hello World is:

#include <iostream>

int main() 
{
  std::cout << "Hello world\n"; 
}

Advice

Here are some detailed examples of Hello World, depending on IDE and operating system:

More demanding examples are:

References