First Printing Errata (April 3, 2009)
Page 77: line 2 after Figure 3.2, change set3 to set2.
Page 101: the 9th line in Section 3.16.5, there are three boxes before 351.34, remove one box.
Pages 247-248: change Figure 7.13 to Figure 7.9.
Page 121: in listing 4.3, cstdlib should be included instead of cmath for srand and rand functions
Page 121: in listing 4.3, move line 16 (srad(time(0)) to line 12.
Page 171 - Listing 5.13 comment should read "between 'a' and 'z'" instead of "between '!' and '~'"
Page 222: line in Section 7.4, change "0 to 52" to "0 to 51".
Page 222: in Listing 7.2, code line 18, change rank to rank + 1.
Pages 247-248: change Figure 7.13 to Figure 7.9.
Page 245 - The Video Note for exercise 7.11 should read "finding the standard deviation"
Page 274: in the output box of Exercise 8.5, change multiplication to addition.
Page 276 - Exercise 8.12 should read ".. to each other. Revise the program so that it finds two points in a three-dimensional space nearest to each other. " where the bold words are the words to be inserted.
Page 317: line 14 in Listing 10.2, delete &.
Page 313: line -3: "s1.find('co', 6)" should be "s1.find("co", 6)"
Page 317: Delete the second line in the output box for Listing 10.2.
Page 341: In Review Question 10.8, change "If the highlighted code in Question 10.2" to "If the highlighted code in Question 10.7".
Page 352 - Two lines after Figure 11.1, change variable number to variable count.
Page 356: the last line before Section 11.4, delete * before p2 in the line *p2 = &length.
Page 381: in Review Question 11.19 (a), line 4, change string *p = s1 to string *p = &s1.
Page 384: in Exercise 11.3, * should be replaced by int*.
Page 384 - Exercise 11.6 - "int counts[] = " should be "int *counts = ". Add s: "to pass the counts array..."
Page 386: in Exercise 11.9, the fourth bullet item, change "and radius" to "width, and height".
Page 432: Line 19 of Listing 13.8 should read "// Create an input file"
Page 513: in the last bullet item of Exercise 15.3, change "Override of the" to "A".
Page 520: Figure 16.1 - Replace "bad_type_id" with "bad_typeid". Same for last paragraph on p. 520.
Page 588: Review Question 18.6, change SIZE to SIZE - 1 and change i = 0 to i = -1.
Page 591: in Objectives, change 19.8 to 19.7, 19.3 to 19.2, 19.4 to 19.3, 19.5 to 19.4, 19.6 to 19.5, 19.7 to 19.6, and 19.8 to 19.7.
Page 610 - Numbers at the top of the page "43, 45" should be replaced with "343, 345"
Page 24-29: three lines before Listing 24.9, change 51 to 408. Two lines before Listing 24.9, change 408 to 30.
Credits: James Chegwidden (Tarrant County College), Mandy Wright (Altamaha Technical College), Ron McCarty (Penn State), Brian Lawson, Dean Kelly (Minnesota State U.), Marcel Manning. Abdulhamid Al Salman (Lawrence Technological University), Frank McCown (Harding College).
Please send errata to y.daniel.liang@gmail.com. Thanks for helping improve the book!
