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).
You might also like to view...
Answer the following statements true (T) or false (F)
1. Check boxes may be grouped in a ButtonGroup, like radio buttons are. 2. All operating systems offer the same set of GUI components. 3. The System.exit method will end the application. 4.The ActionEvent argument that is passed to an action listener's actionPerformed method is the event object that was generated in response to an event.
A plug-in is also called a(n) add-on.
Answer the following statement true (T) or false (F)
When the first page of a document is displayed and a header is inserted, the header appears ONLY on the first page
Indicate whether the statement is true or false
Sensitive data can be encrypted, or coded, so only users with decoding software can read it.
Answer the following statement true (T) or false (F)