How to write a Hello World program in C++
In this example, you will learn about how to write a hello world program in C++.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!"; // std output stream
return 0; // exit status
}
It will print a Hello world
on the screen.