Changes Made from the Second Printing to the Third
Chapter 3
Page |
Line |
Change |
To |
131 |
Footnote |
Replace |
1 As noted earlier (see Footnote 1 in Chapter 1), with some C++ compilers that are not ISO/ANSI-compliant it may be necessary to use old names for libraries e.g., iostream.h instead of iostream and to remove the using namespace std; line. |
132 |
7 of Fig. 3.1 |
iostream.h Insert after this line: |
iostream using namespace std; |
133 |
7 of Fig. 3.2 |
iostream.h Insert after this line: |
iostream using namespace std; |
138 |
1 of Fig. 3.3 |
iostream.h Insert after this line: |
iostream using namespace std; |
141 |
3 of Fig. 3.3 |
iostream.h Insert after this line: |
iostream using namespace std; |
142 |
Footnote |
ANSI |
ISO/ANSI |
143 |
6, 8 of Fig. 3.5 |
iostream.h iomanip.h Insert after line 8: |
iostream iomanip using namespace std; |
150 |
3 of Fig. 3.7 |
iostream.h Insert after this line: |
iostream using namespace std; |
162 |
7 of Fig. 3.8 |
assert.h Insert after this line: |
cassert using namespace std; |
|
4 of Fig. 3.9 |
iostream.h Insert after this line: |
iostream using namespace std; |
167 |
5 of Fig. 3.10 |
iostream.h Insert after this line: |
iostream using namespace std; |
178 |
9 of Fig. 3.11 |
math.h Insert after this line: |
cmath using namespace std; |
180 |
6, 7 of Fig. 3.7 |
iostream.h Insert after line 7: |
iostream using namespace std; |
183 |
6 |
stdlib.h |
cstdlib |
|
14, 16 |
math |
cmath |
|
Footnote |
Replace |
12 The names of header files that C++ inherits from C have been renamed in standard C++ by prepending a c to their names and dropping the .h extension. For example, the C header files stdlib.h, math.h, and ctype.h are now named cstdlib, cmath, and cctype, respectively. If your compiler is not fully ISO/ANSI-C++ compliant, you may have to use the original names. |
187 |
7 of Fig. 3.7 |
iostream.h Insert after this line: |
iostream using namespace std; |
188 |
62 |
iostream.h |
iostream |