178k views
4 votes
Define an object named outfile that can be used to write data from program variables to a file.

1 Answer

3 votes
Frist, we define the variable outfile by this line:
ofstream outfile;
Since the variable is to be used to write data from program variables, we don't assign it any type of variable for it to be a general variable for different values
User Haawa
by
7.9k points