September 2011
Intermediate to advanced
768 pages
15h 18m
English
classThis chapter provides an introduction to classes and objects and how member functions operate on objects. Classes and objects can be arranged in different structures, and this chapter presents some ways to describe the relationships between them. UML is introduced. static and const members are explained. Constructors, destructors, copy operations, and friends are discussed.
structIn the C language, the struct keyword enables the programmer to define a structured chunk of memory that can store a heterogeneous set of data. Example 2.1 shows the definition of a structured piece of memory composed of smaller chunks of memory.
Example 2.1 src/structdemo/demostruct.h
[ . . . . ]struct Fraction { int ...