Exercises

  1. 14.5 (Fill in the Blanks) Fill in the blanks in each of the following:

    1. Computers store large amounts of data on secondary storage devices as              .

    2. The standard stream objects declared by header <iostream> are              ,              ,               and              .

    3. ostream member function               repositions the file-position pointer in a file.

    4.               is the default file-open mode for an ofstream.

    5. istream member function              repositions the file-position pointer in a file.

  2. 14.6 (File Matching) Exercise 14.3 asked you to write a series of single statements. Actually, these statements form the core of an important type of file-processing program, namely, a file-matching program. In commercial ...

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.