"Hello, World!" in C++

#hello-world #c-plus-plus

Written by Anders Marzi Tornblad

How to do "Hello, World!" in C++.

// hello-world.cpp
#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

About ten years after the birth of the C language, object oriented paradigms were added to form the C++ language. The latest version of the C++ standard is called C++14.

For more "Hello, World!" examples, go to the Hello World category.