Home Segments Index Top Previous Next

25: Mainline

To use the output operator, you must inform the C++ compiler that you plan to use C++'s standard input–output library by including the following line in your program:

#include  

There is more to be said about such lines; for now, however, just include the prescribed line before the first instance of the output operator appears.