Introduction
This line is an include directive:
#include <iostream>
Include directives are usually placed at the start of the code.
The <iostream>
header contains the definition for std::cout
and std::endl
. Before we can use them we need to include the <iostream>
header.
Include the <iostream>
header.
#include <iostream>
at the start of the code.