Chapter 12: Problem 5
Should file stream objects be passed to functions by value or by reference? Why?
Chapter 12: Problem 5
Should file stream objects be passed to functions by value or by reference? Why?
All the tools & learning materials you need for study success - in one app.
Get started for freeT F A file may be opened in the definition of the file stream object.
What is the difference between the seekg and seekp member functions?
Write two statements that use a file stream object named places to open a file named places.dat. (Show how to open the file with a member function and at the definition of the file stream object.) The file should be opened for both input and output.
How do you determine the number of bytes that a file contains?
T F If a file is opened in the definition of the file stream object, no mode flags may be specified.
What do you think about this solution?
We value your feedback to improve our textbook solutions.