Chapter 6: Problem 30
Write the definition for a void function called text_to_screen that has one formal parameter called \(f\) ile_stream that is of type ifstream. The precondition and postcondition for the function are as follows: //Precondition: The stream file_stream has been connected //to a file with a call to the member function open. //Postcondition: The contents of the file connected to //file_stream have been copied to the screen character by //character, so that the screen output is the same as the //contents of the text in the file. //(This function does not close the file.)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.