Problem2206--Copy the contents of a file to the screen

2206: Copy the contents of a file to the screen

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Write a void function called copy_to_screen that copies the contents of a file to the screen. The argument of the function is an ifstream object. Preconditions and postconditions follow: Preconditions: The stream argument for the function has been connected to a file with a call to the member function open. Postcondition: The contents of the file connected to the ifstream argument have been copied to the screen so that the screen is the same as the contents of the file. This function does not close the file.

Input

no input

Output

If the task is completed, then print

Sample Output Copy

yes

Source/Category

47