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 xix middle of page |
The sentence |
Anonymous | ||
Printed | Page 31 5th paragraph |
When discussing indentation example 3-1 is referred to. Example 3-1 is the "Hello |
Anonymous | ||
Printed | Page 36 6th paragraph |
"Now let's take a look at the 'Hello World' program (Example 1-1)" |
Anonymous | ||
Printed | Page 38 2nd sentence after Title "The std::cout . . . " |
grammar: Note from the Author or Editor: |
Larry Bourdet | Apr 02, 2009 | |
Printed | Page 41 under the topic of Integers |
-9223372036854775807 (-2^63) |
Anonymous | ||
Printed | Page 46 Sidebar on Legacy Boolean Types |
"These names are depreciated ..." |
Anonymous | ||
Printed | Page 50 bottom |
In discussing the substr() function the book states that Note from the Author or Editor: |
Anonymous | ||
Printed | Page 55 Example 5-7, as well as the first code snippet after Example 5-7 |
The code is correct, but the use of |
Anonymous | ||
Printed | Page 61 code at top of page |
all the strcpy commands in example 5-11 NOW READ std::strcpy |
Anonymous | Jan 01, 2004 | |
Printed | Page 62 code 2/3 down the page |
char full_name[10]; |
Anonymous | Jul 01, 2005 | |
Printed | Page 66 Example 5-12 |
int main() { |
Anonymous | ||
Printed | Page 66 Example 5-12 |
int main() { |
Anonymous | Jul 01, 2005 | |
Printed | Page 73 Penultimate sentence. |
Reference to 'Chapter 1' should be 'Chapter 10'? Note from the Author or Editor: |
Anonymous | ||
Printed | Page 79 IN PRINT: "while Statement" section, 3rd paragraph |
"...Example 6-2 computes all the Fibonacci numbers..." |
Anonymous | ||
Printed | Page 85 Exercise 6-3 |
Doesn't entirely fit in any category, but it would be helpful if the value of a Note from the Author or Editor: |
Anonymous | ||
Printed | Page 119 Figure 9-2 |
Closing brace inside shaded area should be '}' not '{'. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 126 Example 9-2. |
Add as first line: |
Anonymous | ||
Printed | Page 132 2nd code block from the bottom of the page |
// Using a simple reference |
Anonymous | Jul 01, 2005 | |
Printed | Page 134 4th paragraph |
According to the book, when passing a multidimensional array as a parameter to a |
Anonymous | ||
Printed | Page 140 The Recursive "sum" function |
/*else*/ Note from the Author or Editor: |
Anonymous | ||
Printed | Page 141 Half-way down |
Reference to 'Chapter 1' should be 'Chapter 7'? Note from the Author or Editor: |
Anonymous | ||
Printed | Page 142 3rd sentence of Real-World Programming |
"what it take" should be "what it takes" Note from the Author or Editor: |
Larry | Apr 14, 2009 | |
Printed | Page 142 Top paragraph |
Reference to 'Chapter 1' should be 'Chapter 7'? Note from the Author or Editor: |
Anonymous | ||
Printed | Page 143 IN PRINT: Under "Programming by successive experimentation" |
your refine |
Anonymous | ||
Printed | Page 153/154 last paragraph |
Code example is Note from the Author or Editor: |
Anonymous | Jul 02, 2009 | |
Printed | Page 166 Table 11-7 |
In first Signed character column (where 9 >> 2), the second row (Binary value >> 2) the binary value is wrong. It is shown as 0000 1010 which is 10 (decimal), it should be 0000 1001 (9 decimal). Note from the Author or Editor: |
Larry Bourdet | Apr 21, 2009 | |
Printed | Page 167-168 Table 11-11 |
The trailing '2' subscript used for the binary numbers should be smaller. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 170-171 Answer 11-1 |
After presenting a function that turns on pixel (4,7), the text on p.170 Note from the Author or Editor: |
Anonymous | ||
Printed | Page 171 set_bit function (under 3rd paragraph) |
The example NOW READS: |
Anonymous | Jul 01, 2005 | |
Printed | Page 175 IN PRINT: Top |
Answer 11-2 and Answer 11-3 should read Answer 11-1 and Answer 11-2 |
Anonymous | ||
Printed | Page 181 Last code fragment on the page |
The last code fragment on page 181 shows the definition of a union. However, it |
Anonymous | ||
Printed | Page 184 First paragraph - just below code sample |
"In this example we are define..." |
Anonymous | ||
Printed | Page 187 Paragraph 4 |
Reference to 'Chapter 1' should be 'Chapter 11'. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 192 Third to last line of page 192, in stack_pop function |
"inline int stack_pop(struct stack&the_stack)" should read "inline int |
Anonymous | ||
Printed | Page 192 stack_push function |
The 'assert' expression contains a '<=' operator when it should be '<'. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 193 stack_pop function |
The 'assert' expression contains a '<=' operator when it should be '<'. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 203 Paragraph 2 |
Reference to 'Chapter 1' should be 'Chapter 9'. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 205 IN PRINT: The line above int_array example(10); // Works with explicit |
Now the we can initialize our variable using the constructor: |
Anonymous | ||
Printed | Page 209 the very first line |
struct data { public data { Note from the Author or Editor: |
Anonymous | ||
Printed | Page 209 top of page |
line 1: Note from the Author or Editor: |
Anonymous | ||
Printed | Page 222 Code snippet at bottom |
Don't think that the comment for 'int *thing_ptr' should say '(see Figure Note from the Author or Editor: |
Anonymous | ||
Printed | Page 223 Code snippet under '&thing' heading. |
Comment for '*thing_ptr = 5' should probably say '(See Figure 15-2C)' Note from the Author or Editor: |
Anonymous | ||
Printed | Page 228 Example 15-2: line before "Another trick to go back to decimal" code comment |
Line finishes in a comma ",", but should be semi-colon ";": Note from the Author or Editor: |
Anonymous | ||
Printed | Page 234 Pointers and Structures |
Reference to 'Chapter 1' should be 'Chapter 12'. Note from the Author or Editor: |
Anonymous | ||
Printed | Page 235 Code snippet after 1st paragraph |
for (current = 0; current = number_of_entries; ++current) |
Anonymous | ||
Printed | Page 235 code fragment |
in the for loop the variable "current" is initialized with zero. |
Anonymous | ||
Printed | Page 246 code segment |
'#include <assert.h>' Note from the Author or Editor: |
Anonymous | ||
Printed | Page 246 IN PRINT: Last paragraph, third sentence |
"The member function bad..." |
Anonymous | Jan 01, 2004 | |
Printed | Page 246 IN PRINT: Code segment at bottom of page |
"if (data_file.bad()) {" |
Anonymous | Jan 01, 2004 | |
Printed | Page 248 IN PRINT: The paragraph below the description on delim in parentheses |
(And end-of-string(' |