Larry Ullman

Translating Geek Into English

“C++ Programming: Visual QuickStart Guide” Errata

3 mins to read

[C++ Programming:

Visual QuickStart Guide](/books/cpp-programming-visual-quickstart-guide/)

Unfortunately, despite the best efforts of myself, the technical editor, the copy editor, the line editor, the proofreader, and despite the multiple revisions, errors still occur. This page lists all the errors found in the book since it went to print.

Note: errors are corrected in subsequent printings and therefore your particular copy may not contain all of the following. You may also be experiencing problems not caused by a mistake in the book. If so, you may find the solution to your problem by using the book’s corresponding forum. Significant changes in the technology will be addressed there and you can also find problems and solutions encountered by other readers.

Known Errors in the Book:

Click on a column heading to sort the table by that column. ChapterPage #DescriptionDate Added3: Operators and Control Structure58In the last line of code at the bottom of the first column, a / b is 1.5, not 3.5 (d’oh!).March 14, 20063: Operators and Control Structures78On page 78, in Step 3, and on page 79, in Script 3.5 (on line 55), the word “reasonable” is misspelled.August 23, 20064: Input, Output, and Files107In the last tip, the code is missing cin before gcount(). The correct code is std::cin.ignore(std::cin.gcount() + 1);.March 14, 20064: Input, Output, and Files127On line 3 of the fourth paragraph, C:\\path\to\\filename.ext. should actually be C:\\path\\to\\filename.ext. (The second backslash is missing before “to”.)March 14, 20066: Complex Data Types182In the first two example lines of code it should be
std::cout « (int)3.14;

std::cout « int(3.14);July 24, 20067: Introducing Objects213The comments in Script 7.2 are incorrect. For the area(), perimeter(), and isSquare() methods, the comments suggest they take arguments when they do not.November 14, 20067: Introducing Objects213The comment on line 39 of Script 7.2 should indicate that the area() method returns an integer.October 26, 20098: Class Inheritance257In the second tip, it should be … like Gerbil or Horse… as those would be class names, not methods.July 24, 20068: Class Inheritance259At the end of the text in Step 3, there’s a double quotation mark missing after name « " goes ‘woof-woof’.July 24, 20069: Advanced OOP271Lines 71-73 of Script 9.1 are missing. Those three lines are:
int Pet::getCount() { return count; } March 22, 20069: Advanced OOP272The implementation of the Pet::getCount() method described in Step 7 is missing from Script 9.1.July 24, 20069: Advanced OOP274The first line in the first tip should say “static members” (plural).August 30, 20079: Advanced OOP279On the second line of the second paragraph, the accented “O” character should actually be a dash.August 30, 200712: Namespaces & Modularization410The definition of the headerNum variable in the header.h file should be changed to read
static const unsigned short headerNum = 5;
This fixes an error message that can appear during compilation. For more information, see the corresponding forum.August 30, 2007