C++ Program Structure

#include <iostream>

int main()

{

std::cout << “Hello World!”;

return 0;

}

#include – is a preprocessor directive used to include files in our program. The above code is including the contents of the iostream file.

Cout –  print output on the screen.

Leave a Reply