Header files contain declarations.
When a program uses items that are in standard libraries or which are defined in some other user file, a header file is included so that the compiler can see the declaration of this external item.
We need to include a header file for C++ I/O. The name of the file is iostream:
#include <iostream>
using namespace std;
int main()
{
...
return 0;
}