Using the PDF I'm on 543 of 772
Code:
any number of levels, a common system is to have four levels: HIGH, MEDIUM, LOW, and NONE.
Listing 17.8 illustrates how this might be done, using the String and Animal classes from Listing
17.6. The definitions of the class methods other than Invariants() have been left out to save
space because they are unchanged from Listing 17.6.
NOTE: To compile this code, copy lines 43-136 of Listing 17.6 between lines 64 and
65 of this listing.
Listing 17.8. Levels of debugging.
0: enum LEVEL { NONE, LOW, MEDIUM, HIGH };
1: const int FALSE = 0;
2: const int TRUE = 1;
3: typedef int BOOL;
4:
5: #define DEBUGLEVEL HIGH
6:
7: #include <iostream.h>
8: #include <string.h>
9:
10: