Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page not part_number . |
Anonymous | Jun 01, 2001 | ||
Printed | Page 40 under "Revision history": changed "PVCS" to "PCVS" |
Anonymous | Jan 01, 1998 | ||
Printed | Page 43 paragraph 1 under "Indentation and Code Format," line 3 |
changed "Example 3-5" to "Example 3-1" |
Anonymous | Jul 01, 1998 | |
Printed | Page 58 In Example 4.3. float1/float1.c |
main() |
Anonymous | Sep 01, 1999 | |
Printed | Page 58 Example 4-3 |
floating = (1/2) + (1/2) assign floating 1.0 now reads floating = (1/2) + |
Anonymous | Jun 01, 2001 | |
Printed | Page 59 Table 4-3, last line |
The x is missing. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 70 4th para: put "'/0'" in constant-width font |
Anonymous | Jan 01, 1998 | ||
Printed | Page 75 code block in "NOTE": |
const int first_part = 3; |
Anonymous | ||
Printed | Page 78 Question 5-3 |
The example code fails to include #include <iostream.h>--If source is copied |
Anonymous | ||
Printed | Page 78 first paragraph |
10010100 base 2 now reads 1001 0100 (not 1000 0100), which is 94 base 16 (not |
Anonymous | Jun 01, 2001 | |
Printed | Page 89 |
The sentence before the last sentence now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 90 two lines above the "typedef" heading: |
changed "5.0" to "50" |
Anonymous | Jan 01, 2000 | |
Printed | Page 102 Example 7-1. |
Example 7-1. calc/calc.cc Note from the Author or Editor: |
Anonymous | ||
Printed | Page 102 example 7-1: made the line |
cin >> oper_char >> value; |
Anonymous | Jan 01, 1998 | |
Printed | Page 103 changed "operator" to "oper_char" three times in code and once |
in text |
Anonymous | Jan 01, 1998 | |
Printed | Page 105 1st paragraph |
make determines what compilation commands are needed Note from the Author or Editor: |
Anonymous | ||
Printed | Page 106 last code block, line 2: made the line |
cin >> value >> operator; |
Anonymous | Jan 01, 1998 | |
Printed | Page 106 In the example at the bottom, the undefined variable operator was |
replaced with oper_char (three times). |
Anonymous | Jun 01, 2001 | |
Printed | Page 107 In the description of the result the debug output |
## after cin + |
Anonymous | ||
Printed | Page 107 changed the line |
cin >> oper_char >> value; |
Anonymous | Jan 01, 1998 | |
Printed | Page 107 Example 7-2 |
The filename now reads calc3.cc (not calc3.c). |
Anonymous | Jun 01, 2001 | |
Printed | Page 111 Example 7-3 |
The alignment on the right side of the example has been fixed. |
Anonymous | Jun 01, 2001 | |
Printed | Page 120 Begining of Example 8-4 |
In Example 8-4.seven/seven.cc. the first line "include <iostream.h>" is missing the Note from the Author or Editor: |
Anonymous | ||
Printed | Page 128 Figure 9.1 |
The last brace in the highlighted block faces the wrong way. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 128 In Answer 8-1 the variable |
centigrade |
Anonymous | Jun 01, 2001 | |
Printed | Page 130 Figure 9-2 (above the line '++count;') |
The second 'Block' is now closed with a "}" |
Anonymous | Jan 01, 2000 | |
Printed | Page 134 In the NOTE, changed |
the type defaults to int |
Anonymous | Sep 01, 1999 | |
Printed | Page 137 1st paragraph under "Reference Parameters and Return Values" |
In the first line, "Chapter 4, Basic Declarations and Expressions" now reads |
Anonymous | Jun 01, 2001 | |
Printed | Page 138 replaced Example 9-7. value/bic.cc with the following |
const int ARRAY_SIZE = 5 // Size of the array |
Anonymous | Dec 01, 1998 | |
Printed | Page 138 The last sentence before example 9-7 no longer has |
a "{" at the end of it. |
Anonymous | Jan 01, 2000 | |
Printed | Page 138 Example 9-7 |
This example now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 139 In the example with the comment |
// Using a simple reference Note from the Author or Editor: |
Anonymous | ||
Printed | Page 139 code sample -3, line -1: replaced |
cout << biggest(item_array, 5) << ' |
Anonymous | Dec 01, 1998 | |
Printed | Page 139 |
In the first coding example it read: |
Anonymous | Sep 01, 1999 | |
Printed | Page 139 |
The 3rd line in the first block of code now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 139 |
The 5th paragraph now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 141 next-to-last code example, line 2: changed "...[][10]" to |
"...[10][]" |
Anonymous | Jan 01, 1998 | |
Printed | Page 141 |
The first sentence of Array Parameters did read: |
Anonymous | Jan 01, 2000 | |
Printed | Page 143 First line on page, the word "list" is now in Normal font |
(formerly constant-width) |
Anonymous | Jan 01, 2000 | |
Printed | Page 143 In the first four blocks of code in the section "Default Parameters" |
...(const rectangle &rectangle... |
Anonymous | Jun 01, 2001 | |
Printed | Page 155 Question 10-2, sentence 1: changed "Example 10-2" to |
"Example 10-4" |
Anonymous | Jul 01, 1998 | |
Printed | Page 155 Example 10-4, line 5: changed |
#define MAX=10 |
Anonymous | Jul 01, 1998 | |
Printed | Page 155 |
In example 10-4, line 5 now reads: |
Anonymous | Jan 01, 2000 | |
Printed | Page 155 Example 10-4 |
Line 5 did read |
Anonymous | Jul 01, 2000 | |
Printed | Page 155 |
Question 10-2 now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 155 |
The text for Question 10-3 now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 156 |
The heading of example 10-6 did read: |
Anonymous | Jan 01, 2000 | |
Printed | Page 157 2nd line on page |
const box pink_box(1.0, 4.5); |
Anonymous | Jun 01, 2001 | |
Printed | Page 161 Changed the font style of paragraphs from Question 10-5 to Question 10-6 |
from italics to regular. |
Anonymous | Dec 01, 1998 | |
Printed | Page 164 In Answer 10-4, the line |
void exit(); |
Anonymous | Jun 01, 2001 | |
Printed | Page 165 |
Answer 10-5 now reads: |
Anonymous | Dec 01, 1998 | |
Printed | Page 167-168 All of Table 11-1 now appears on page 168 so the two lists of values |
are not broken up. |
Anonymous | Jun 01, 2001 | |
Printed | Page 169 In the detailed explanation after "This is because:", the value 0x41 has |
been placed under 0x71. It was too far left. |
Anonymous | Jun 01, 2001 | |
Printed | Page 170 explanation for & operator |
The "&" has been placed above the line. |
Anonymous | Jun 01, 2001 | |
Printed | Page 171 explanation for | operator |
The "|" has been placed above the line. |
Anonymous | Jun 01, 2001 | |
Printed | Page 171 explanation for ^ operator |
The"^" has been placed above the line. |
Anonymous | Jun 01, 2001 | |
Printed | Page 178 code at bottom |
The line: |
Anonymous | Jun 01, 2001 | |
Printed | Page 179 Example 11-2 |
The line: |
Anonymous | Jun 01, 2001 | |
Printed | Page 180-181 The sentence |
Finally, at the heart ... |
Anonymous | Jun 01, 2001 | |
Printed | Page 181 replaced Question 11-2 and example 11-3 - contact me for the new info |
Anonymous | Jan 01, 1998 | ||
Printed | Page 186 code at top |
field-type field-name |
Anonymous | Jun 01, 2001 | |
Printed | Page 189 The first code segment now has a "}" right after the last line |
main() |
Anonymous | Jan 01, 2000 | |
Printed | Page 190 between first and second Table; second Table itself |
Copy/Paste Error Note from the Author or Editor: |
Anonymous | ||
Printed | Page 190 1st line of code under "typedef" |
typedef type-declaration |
Anonymous | Jun 01, 2001 | |
Printed | Page 192 First line of the large code segment in the middle of |
the page now reads: |
Anonymous | Jan 01, 2000 | |
Printed | Page 192 2nd block of code |
enum enum-name {tag-1, tag-2, . . .} variable-name |
Anonymous | Jun 01, 2001 | |
Printed | Page 207 |
The code at the top of this page did read: |
Anonymous | Jan 01, 2000 | |
Printed | Page 209 |
2nd box should read: |
Anonymous | ||
Printed | Page 209 |
The first sentence now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 210 Near the bottom of the page |
call_type first_var |
Anonymous | Jan 01, 2000 | |
Printed | Page 215 Exercise 13-4, under Member functions |
int small_set::test(void); |
Anonymous | Sep 01, 1999 | |
Printed | Page 228 para 1, last line: changed "11 chapters" to "14 chapters"; and |
in para 4, line 2, changed "Pennsylvania Ave." to "W. Pennsylvania |
Anonymous | Jan 01, 1998 | |
Printed | Page 230 Example 15-5 (init-a/init-a.cpp) |
void init_array_1(int data[]) |
Anonymous | ||
Printed | Page 230 the figure on this page is new |
Anonymous | Jan 01, 1998 | ||
Printed | Page 232 line -4 |
"If you put the const after the *, we tell C++ that the data is constant." |
Anonymous | Dec 01, 1998 | |
Printed | Page 241 4th line |
command options file1 file1 file3 ... Note from the Author or Editor: |
Anonymous | ||
Printed | Page 261 para. 7 under "The End-of-Line Puzzle," lines 1 and 5 |
changed "<line feed><carriage return>" to |
Anonymous | Jul 01, 1998 | |
Printed | Page 262 In Example 16-3 the parentheses in the line |
(cerr << "Cannot open output file |
Anonymous | Jun 01, 2001 | |
Printed | Page 262 Example 16-3 |
out_file << cur_char; |
Anonymous | Jun 01, 2001 | |
Printed | Page 267 Example 16-4, line 27: changed |
if (argc != 3) { |
Anonymous | Jul 01, 1998 | |
Printed | Page 268 Example 16-4 |
Cast (unsigned int) is not necessary and it is not the recommended C++ style, |
Anonymous | Jun 01, 2001 | |
Printed | Page 283 Example 17-1, top of page |
The declaration reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 284 Example 17-2 |
The line: |
Anonymous | Jun 01, 2001 | |
Printed | Page 284 Example 17-2 |
At the bottom of the page the line: |
Anonymous | Jun 01, 2001 | |
Printed | Page 285 Example 17-2, top of page |
The line: |
Anonymous | ||
Printed | Page 285 Example 17-3 |
The line: |
Anonymous | Jun 01, 2001 | |
Printed | Page 287 Example 17-4 |
The code should read: |
Anonymous | ||
Printed | Page 288 Example 17-5, top of page |
4th line now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 289 twice in code, made " John is in the list" into " John is not |
in the list"; in the last para., line 2: changed "PVCS" to "PCVS" |
Anonymous | Jan 01, 1998 | |
Printed | Page 291 code |
The lines: |
Anonymous | ||
Printed | Page 291 added a semicolon at the end of the "debug_ptr..." line |
Anonymous | Jan 01, 1998 | ||
Printed | Page 292 para. 2 under "Going Through the Output": changed |
"C++ allows you to" to "The shell or command-line interpreter |
Anonymous | Jul 01, 1998 | |
Printed | Page 299 1st paragraph |
In the first sentence the name of the function is missing It should read: |
Anonymous | ||
Printed | Page 307 |
The last sentence before "Runtime Errors" now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 323 |
2nd line of code at top of page now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 327 In the middle of the page the function number.set() is used, but it has |
not been defined yet. |
Anonymous | Jun 01, 2001 | |
Printed | Page 342 Answers to Chapter Questions |
The following was added to the end of the section: |
Anonymous | Jun 01, 2001 | |
Printed | Page 344 In Table 19-1 |
33000.0 |
Anonymous | Jun 01, 2001 | |
Printed | Page 345 In "Multiplication" under item 3, the normalized result |
+1.3200E+0 |
Anonymous | Jun 01, 2001 | |
Printed | Page 347 At the top of the page the line |
1/3 as floating point is 3.333-1 |
Anonymous | Jun 01, 2001 | |
Printed | Page 357 3rd block of code |
Mine reads: Note from the Author or Editor: |
Anonymous | ||
Printed | Page 358 2nd block of code under :delete Operator" |
delete []pointer; |
Anonymous | ||
Printed | Page 360 |
5th line of code now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 361 |
1st line of code now reads: |
Anonymous | Jun 01, 2001 | |
Printed | Page 362 Example 20-2 |
name -- name to look for in the list |
Anonymous | Jun 01, 2001 | |
Printed | Page 363 code sample, lines 12, 13, 15, 18: changed all occurances |
of "insert_ptr" to "after_ptr" |
Anonymous | Jul 01, 1998 | |
Printed | Page 363 2nd paragraph |
The sentence: |
Anonymous | Jun 01, 2001 | |
Printed | Page 363 code |
The lines: |
Anonymous | Jun 01, 2001 | |
Printed | Page 366 In the middle of the page, the sentence |
Notice that we do not have to keep track of the variable after_ptr. |
Anonymous | Jun 01, 2001 | |
Printed | Page 367 The 6th paragraph now refers to Figure 20-10, not 20-11. |
Anonymous | Jun 01, 2001 | ||
Printed | Page 368 The order of the steps does not fit to the order of the steps described |
in the text (confusing). The indents before step 3 and 4 have been removed. |
Anonymous | Jun 01, 2001 | |
Printed | Page 368-369 Figures 20-9 and 20-10 were switched. |
Anonymous | Jun 01, 2001 | ||
Printed | Page 369 "private:" was added to the top of class tree. |
Anonymous | Jun 01, 2001 | ||
Printed | Page 370-371 Figures 20-12 and 20-13 were switched. |
Anonymous | Jun 01, 2001 | ||
Printed | Page 372 changed first code sample |
void tree::enter_one(node *&tree_node, char *word) |
Anonymous | Jul 01, 1998 | |
Printed | Page 372 code |
result = strcmp(node->word, word); |
Anonymous | Jun 01, 2001 | |
Printed | Page 373 first code sample, lines 5 and 7: changed |
"print_tree" to "print_one" |
Anonymous | Jul 01, 1998 | |
Printed | Page 373 para. 1 under "The Rest of the Program", last |
sentence: changed "print_tree" to "print_one" |
Anonymous | Jul 01, 1998 | |
Printed | Page 375 Example 20-3, middle of page |
for (index = 1; index < sizeof(word); ++index) { |
Anonymous | Jun 01, 2001 | |
Printed | Page 387 1st para |
There appears to be a missing code example after the first paragraph. It ends in a Note from the Author or Editor: |
Anonymous | ||
Printed | Page 387 In the middle of the page, the line |
b_stack::b_stack(cont unsigned ... |
Anonymous | Jun 01, 2001 | |
Printed | Page 389 2nd block of code |
The line: |
Anonymous | Jun 01, 2001 | |
Printed | Page 389 2nd paragraph |
The sentence: |
Anonymous | Jun 01, 2001 | |
Printed | Page 408 Example 22-1 |
In the second comment block, the Parameters explanation is senseless because |
Anonymous | ||
Printed | Page 417 Example 23-2 |
In the comment block, the function declaration: |
Anonymous | ||
Printed | Page 417 Example 23-2, middle of page |
BLOCK_SIZE = 100 |
Anonymous | ||
Printed | Page 418 last para.: changed "100" to "10" and "308" to "38" |
Anonymous | Jan 01, 1998 | ||
Printed | Page 419 Example 23-3 |
The right side of the first comment box should be realigned. |
Anonymous | ||
Printed | Page 426 In the line |
((HIGH_BOUND - LOW_BOUND) / (float) (NUMBER_OF_LINES); |
Anonymous | ||
Printed | Page 437 Figure 24-1: Corrected two errors |
- the #define make_max(type) line (first line) now reads: |
Anonymous | May 01, 1999 | |
Printed | Page 439 In the middle of the page, the line |
if (strcmp(d1, d2) < 0 |
Anonymous | ||
Printed | Page 452 1st block of code |
The 3rd line should read: |
Anonymous | ||
Printed | Page 452 In the first para. of the box "Porting four-letter words," letter is |
misspelled as "latter". |
Anonymous | ||
Printed | Page 457 Example 26-1 |
The number of comment only lines should be 3 instead of 4. |
Anonymous | ||
Printed | Page 464 Example 26-2 |
A semicolon is missing at the end of line: |
Anonymous | ||
Printed | Page 464 "Revisions", first paragraph |
The "need for expendability" should be "need for expandability". |
Anonymous | ||
Printed | Page 480 Example 26-8 |
$(CCFLAGS)=-g |
Anonymous | ||
Printed | Page 496 4th code block |
A semicolon is missing at the end of line: |
Anonymous | ||
Printed | Page 555 removed the first entry for "standard libraries" |
Anonymous | Jan 01, 1998 | ||
Printed | Page 556 |
(556) The try keyword is explained on page 403 and not on page 405. |
Anonymous |