January 2001
Intermediate to advanced
688 pages
13h 52m
English

5.1 Properties of a good program
5.2 Conditional loops with while- and do-statements
5.3 User-defined exceptions
5.4 The type char
5.5 The switch-statement
5.6 Case Study 2: Rock–scissors–paper game
The structure of a program indicates how its parts are connected together, and how sound those connections are. One can think of the structure of a bridge: each strut and rivet plays its role, and the whole performs a defined function efficiently. Bridges can even look pleasing. So it is with programs. When we create them we aim to achieve a structure that in the first instance achieves the required ...
Read now
Unlock full access