C++ Cookbook, 1st Edition by Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell This errata page lists errors corrected in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated August 20, 2007. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: (5) Table 1-2, 2nd row [Intel (Linux)], 2nd column [Compiler]; "lcpc" should be: "icpc" (210) 3rd line; self operator+() { return self(-m); } should be: self operator+() { return self(+m); } ^ (259 & 278) in the code; #include "utils.h" // For printContainer(): see 7.10 should be: #include "utils.h" // For printContainer(): see 7.11 {406} Table 11-1, 1st row, 2nd column; --- \ n \ (x - mean) / i / --- should be: --- \ n \ (x - mean) P(x ) / i i / --- (i.e. the summation of x sub i minus the mean to the nth power, times the probability of x sub i) {406} Table 11-1, 2nd row, 2nd column; u 2 should be: u 2 (i.e. u sub 2, where 'u' is meant to represent the greek letter 'mu') {406} Table 11-1, 3rd row, 2nd column; / \/ u 2 should be: ___ / / u \/ 2 (i.e. the square root of u sub 2, where 'u' is meant to represent the greek letter 'mu') {406} Table 11-1, 4th row, 2nd column; 3/2 u 3 / u 2 should be: 3/2 u / u 3 2 (i.e. u sub 3 divided by u sub 2 to the 3/2 power, where 'u' is meant to represent the greek letter 'mu') {406} Table 11-1, 5th row, 2nd column; 2 (u 4 / u 2 ) - 3 should be: 2 ( u / u ) - 3 4 2 (i.e. u sub 4 divided by u sub 2 squared, minus 3, where 'u' is meant to represent the greek letter 'mu') {467} Example 13-1, 8th line; In the line: wstring ws2 = L"Euro: _"; the underscore should be replaced by the Euro symbol. {468} 2nd line of code; In the line: wstring ws2 = L"Euro: _"; // Or just type it in the underscore should be replaced by the Euro symbol. (484) 3rd paragraph, 1st sentence; "...you may want download and install the libraries..." should be: "...you may want to download and install the libraries..." (494) 12th line in example 14-4; ...string to wide-charactr string... Should be ...string to wide-character string... (497) 2nd paragraph, 2nd sentence; "(See Example 14-2 for the definition of the class Animal.)" should be: "(See Example 14-2 for the C++ definition of the class Animal.)"