Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

(C++) Hello World

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:

External links

References