October 1999
Beginner
304 pages
7h 11m
English
In this chapter, we evolve a small program to exercise the fundamental components of the C++ language. These components consist of the following:
A small set of data types: Boolean, character, integer, and floating point.
A set of arithmetic, relational, and logical operators to manipulate these types. These include not only the usual suspects, such as addition, equality, less than, and assignment, but also the less conventional increment, conditional, and compound assignment operators.
A set of conditional branch and looping statements, such as the if statement and while loop, to alter the control flow of our program.
A small number of compound types, such as a pointer and an array. These allow us, respectively, ...
Read now
Unlock full access