Errata for First Printing of Absolute C++ W. Savitch Please send any additional corrections to wsavitch@ucsd.edu p.132, Programming Project 6. The formula for W is in correct. It should be: W = 13.12 + 0.6215*t - 11.37v^0.16 + 0.3965*t*v^0.16 The ^ indicates exponentiation p. 256 Programming Project 4 Change part f to: f. Actual behavior of the gas pump is, once started, it dispenses as long as you hold the nozzle lever. Peculiarities of console I/O make it difficult to continue to dispense while waiting for a signal to stop. One solution is to model this behavior by having the user repeatedly press the return (enter) key, dispensing a quantum of fuel and recomputing the amount charged, say 0.1 gallons at each press. p. 340 The text says that the argument to the member operator [] must be an integer type. This is not true. It can be any type. p. 357-358 Display 9.1 The three argument functions are spelled strncat and strncmp (with an n) not strcat and strcmp. p. 414 Exercise 4 in shaded box: The comment should refer to Exercise 3, not Exercise 4. p. 813 Display 19.11, Table on set The text says s.find(Element) returns a mutable iterator. In fact, the iterator may or may not be mutable; it is implementation dependent. p. 839 Adapter Pattern Correct one sentence in the first paragraph of the section to: For example, you can have a stack of ints with an underlying vector, stack > or a stack of ints with an underlying list, stack > Software on CD: Visual C++ problems with friends. The VC++ compiler provided on the CD has some bugs. In particular, it does not handle friends correctly. However, this can be corrected by downloading and installing Visual Studio 6 Service Pack 5 from the Microsoft Web site or from the following Web site: http://download.com.com/3000-2212-5030861.html?tag=list Code on CD: The following is an error in the code distributed with the book. The error does not occur in the book itself. The code in the book is correct. The file 08-05.cpp was corrupted and does not match the text. To fix it, you need to delete code from the definition of the member function getAmount as follows: double Money::getAmount( ) const { return (dollars + cents*0.01); }