Assume that your program opens a file stream, has a file connected, and writes to the file. What changes need to be made to make your program write to the screen? (There will be stuff you need to delete and stuff that you need to change.)
What will be an ideal response?
To make a program that writes to a file write to the screen, replace ifstream and ofstream with istream and ostream respectively. Then remove calls to open and close fstream members (because they are not iostream members).
Computer Science & Information Technology
You might also like to view...
The default file extension for a PowerPoint template is ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
Pasting replaces any content already in the cell.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology