Hello World in C plus plus

Hello World is the typical minimum-function program that prints a message and exits successfully. This is an example written in C++.

main.cpp using namespace std;
 * 1) include

int main(int argc, char *argv[]) { cout << "Hello World!"; return 0; } Build and run your program: g++ -o hello main.cpp && ./hello