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