Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) HelloC++11

 

HelloC++11 is an extension of Hello World. Like Hello World, HelloC++11 is a simple console application. HelloC++11, however, also requires the C++11 standard to compile.

 

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

 

The code base of HelloC++11 is:

 

#include <iostream>

int main()
{
  const auto s = "Hello C++11";
  std::cout << s << '\n';
}

 

Here are some detailed examples of HelloC++11, depending on IDE and operating system:

 

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict