For file output, C++ uses analogs to cout
So, to prepare for file output, let’s review some basic facts about using cout for console output
(B-1):
You must include the iostream header file.
The iostream header file defines an ostream class for handling output.
The iostream header file declares an ostream variable, or object, called cout.
You must account [...]
Let’s look at how to display a message
The myfirst.cpp program (A-1)
Uses the following C++ statement (A-2):
The part enclosed within the double quotation marks is the message to print
In C++, any series of characters enclosed in double quotation marks is called a character string, presumably because it consists of several characters strung together into a larger [...]