C++: Hello, World!

The beginning of every programming language adventure is greeting the world!

#include <iostream>

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

If you save this code in a file named hello-world.cxx, you can compile it and run it with the following code:

$ c++ hello-world.cxx

$ ./a.out
Hello, World!

Explore More