<<< Standard Output Stream | Index | Formatted Output >>> |
std::cout is a pre-defined object
We need to
#include <iostream>
to bring std::cout into our program
std::cout is attached to the standard output device, which can be console display, file, or printer.
I/O redirection to file or printer is made easy:
CMD> myprogram > myfile.txt
The above command sends standard output to myfile.txt
<<< Standard Output Stream | Index | Formatted Output >>> |