Use the function you wrote for the first exercise in § 8.1.2 (p. 314) to print the contents of an istringstream object.
§ 8.1.2
Exercise 8.1
Write a function that takes and returns an istream&. The function should read the stream until it hits end-of-file. The function should print what it reads to the standard output. Reset the stream so that it is valid before returning the stream.
Exercise 8.2
Test your function by calling it, passing cin as an argument.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.