While it is technically true that C++ is a superset of the C language, this does not mean that by simply taking a C statement and translating it into a C++ equivalent form, you have written a C++ program! In many cases C++ has a better way of solving a programming problem. Often, the C++ equivalent of a C program streamlines the way your program inputs and outputs data. However, this is not always true. This chapter introduces you to C++ I/O.
The topic of advanced C++ input and output is continued in Chapter 17. The division of the topic is necessary because of the diverse I/O capabilities available to C++ programmers. Chapters 16 to 19 teach the fundamentals of object-oriented programming. Once you understand how objects are created, it will be much easier to understand advanced object-oriented C++ I/O. Chapter 17 picks up with C++’s ability to effortlessly manipulate objects.