Hello, World!
By long tradition, the first example is a program that prints the message “Hello,World!”.
#include <iostream> /* * This is the famous Hello, World! program, * C++ version. */ int main(int argc, char **argv) { // Send greetings. std::cout << "Hello, world!" << std::endl; return 0; }
Things to note: