O'Reilly logo

Object-Oriented Programming with C++ by A.K. Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10

FILE HANDLING IN C++

10.1 FILE CONCEPTS

We know that every program or sub-program consists of two major components: algorithm and data structures. The algorithm takes care of the rules and procedures required for solving the problem and the data structures contain the data. The data is manipulated by the procedures for achieving the goals of the program as shown in Fig. 10.1.

Figure 10.1

Figure 10.1 The structure of a program or sub-program

In object-oriented programming (OOP), an object is central to the ideology. The object has two components: states and behaviours. The states and behaviours model the data and procedures, respectively. Each behaviour ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required