EXERCISES
  1. List C++ predefined streams and explain their significance.
  2. Explain stream classes and stream class hierarchy for input/output.
  3. Explain why C++ I/O is considered better than I/O in C language.
  4. Discuss advantages and disadvantages of format-free input/output.
  5. What is the advantage of formatted output?
  6. Why does disk-based input/output needs buffers?
  7. What are manipulators? List the various predefined manipulators supported by C++ streams.
  8. What are custom manipulators? Write a custom manipulator for inserting six blanks in the output.
  9. Design a single manipulator format to provide the following output specifications for printing float values:
    1. 10 columns width.
    2. Right-justified.
    3. Two digits precision.
    4. Filling of unused places with *.
    5. Trailing ...

Get Object Oriented Programming with C++, Second Edition 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.