Code Complete Second Edition Comments and Corrections (884775)



The information in this article applies to:

  • MSPRESS Code Complete Second Edition

SUMMARY

This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Code Complete Second Edition, 0-7356-1967-0.

The following topics are covered:
  • Page 65: Incorrect Information About JavaScript
  • Page 81: Incorrect Information Regarding Classes
  • Page 226: Error Should Be ErrorToReport
  • Page 229: Incorrect Page Numbers
  • Page 240: Option Explicit Should Be Num
  • Page 266: Error in Code Sample
  • Pages 294 and 295: All Instances of 100,000 Should Be 1,000,000
  • Page 295: Missing Minus Sign
  • Pages 330-332: Error in Code Samples
  • Page 330: Missing Reference to C
  • Page 330: C++ Should Be C
  • Page 330: C++ Example Should Be C Example
  • Page 330: Missing Information Regarding C++
  • Page 331: Invalid Statement
  • Page 333: Reference Should Be Value
  • Page 333: Value Should Be Reference
  • Pages 402-405: Wend Should Be End While
  • Page 422: "}" Should Be "};"
  • Page 423: "and" Should Be "&&"
  • Page 512: "line 15" Should Be "line 12" In Table
  • Page 610: x Is Not Greater Than 5
  • Page 613: "C++" Should Be "C#"
  • Page 619: Error In Code Sample
  • Page 752: Errors In Code Sample
  • Page 758: Incorrect Listing Reference
  • Page 779: Error In First Code Sample
  • Page 779: Error In Second Code Sample
  • Page 858: Incorrect Address

MORE INFORMATION

Page 65: Incorrect Information About JavaScript

There is an error regarding JavaScript on page 65.

Change:
"JavaScript is an interpreted language that is loosely"

To:
"JavaScript is an interpreted language that was originally loosely"

Page 81: Incorrect Information Regarding Classes

There is an error in the first paragraph on page 81.

Change:
"the number of routines called from within a routine or from within a class"

To:
"the number of routines called from within a routine or the number of classes used within a class"

Page 226: Error Should Be ErrorToReport

There is an error on page 226 after the code sample.

Change:
"Italicized variable name 'error'"

To:
"Italicized variable name 'errorToReport'"

Page 229: Incorrect Page Numbers

On page 229, there is an error in the 2nd paragraph:

Change:
"Now look again at the spec on page 000 and the initial pseudocode on page 000."

To:
"Now look again at the spec on page 221 and the initial pseudocode on page 224."

Page 240: Option Explicit Should Be Num

There is an error in the middle of page 240.

Change:
"common suffixes such as Option Explicit and No"

To:
"common suffixes such as Num and No"

Page 266: Error in Code Sample

There is an error in the second code sample on page 266.

Change:
"if ( recalcNeeded == True )"

To:
"if ( recalcNeeded = false )"

Pages 294 and 295: All Instances of 100,000 Should Be 1,000,000

There are multiple typographical errors in the last paragraph on page 294, and the first paragraph on page 295.

Change all instances of:
"100,000"

To:
"1,000,000"

Page 295: Missing Minus Sign

There is a minus sign missing from the first paragraph on page 295.

Change:
"727,379,968"

To:
"-727,379,968"

Pages 330-332: Error in Code Samples

The code samples on pages 330, 331, and 332 contain incorrect data. The lines of code beginning with "memset( pointer" should be removed.

Page 330: Missing Reference to C

There is a typographical error in the fourth paragraph on page 330.

Change:
"You can force errors"

To:
"In C, you can force errors"

Page 330: C++ Should Be C

There is a typographical error in the fourth line of the fourth paragraph on page 330.

Change:
"C++"

To:
"C"

Page 330: C++ Example Should Be C Example

There is an error in the first code sample on page 330.

Change:
"C++ Example"

To:
"C Example"

Page 330: Missing Information Regarding C++

There is an error in the first line of the fifth paragraph on page 330.

Change:
"Of course, this technique requires"

To:
"Of course, this technique will not work in C++ where the pointer points to an object, and it requires"

Page 331: Invalid Statement

On page 331, there is an error in the second to the last line .

Change:
"It can also check for a null return ..."

To:
"It can also be checked for an exception or a null return ..."



Page 333: Reference Should Be Value

On page 333,

Change:
"Sometimes, however, you would like to have the semantics of a pass by reference"

To
"Sometimes, however, you would like to have the semantics of a pass by value"

Page 333: Value Should Be Reference

On page 333,

Change:
"with the implementation of a pass by value"

To:
"with the implementation of a pass by reference"

Pages 402-405: Wend Should Be End While

In the code samples on pages 402-405, "Wend" should be changed to "End While" in the following locations:

Page 402, first code sample, 4th line from bottom;
Pages 403 and 404, first code sample, 3rd line from bottom;
Page 405, first code sample, 5th line from bottom.

Page 422: "}" Should Be "};"

There are two errors in the first code sample on page 422.

In the 4th line, change the first "}" to "};"
In the 10th line, change the last "}" to "};"

Page 423: "and" Should Be "&&"

There is an error in the code sample on page 423.

Change:
"and"

To:
"&&"

Page 512: "line 15" Should Be "line 12" In Table

Case 8 in the table on page 512 contains an error.

Change:
"line 15"

To:
"line 12"

Page 610: x Is Not Greater Than 5

There is an error in the 3rd paragraph on page 610.

Change:
"Once you've determined that x is greater than 5"

To:
"Once you've determined that x is not greater than 5"

Page 613: "C++" Should Be "C#"

There are two errors in the 2nd paragraph on page 613.

Change both instances of:
"C++"

To:
"C#"

Page 619: Error In Code Sample

There is an error in the 1st code sample on page 619.

In the 3rd line from the bottom,

Change:
"if ( i == count )"

To:
"if ( i == count - 1 )"

Page 752: Errors In Code Sample

There are two errors in the middle code sample on page 752.

Change:
"if ( mainColor = BallColor_White"

To:
"if ( mainColor == BallColor_White"

And change:
"if ( mainColor = BallColor_Blue"

To:
"if ( mainColor == BallColor_Blue"

Page 758: Incorrect Listing Reference

There is an incorrect listing reference 3/4 of the way down page 758.

Change:
"In Listing 31-45"

To:
"In Listing 31-47"

Page 779: Error In First Code Sample

There is an error in the 1st code sample on page 779.

Change:
"for ( i = 1;"

To:
"for ( i = 2;"

Page 779: Error In Second Code Sample

There is an error in the 5th line from the bottom of the 2nd code sample on page 779.

Change:
"for ( primeCandidate = 1;"

To:
"for ( primeCandidate = 2;"

Page 858: Incorrect Address

The address in the 2nd paragraph from the bottom of page 858 is not valid.

Change:
"write: ACM, PO Box 12114, Church Street Station, New York, NY 10257"

To:
"see www.acm.org."

Microsoft Press is committed to providing informative and accurate books. All comments and corrections listed above are ready for inclusion in future printings of this book. If you have a later printing of this book, it may already contain most or all of the above corrections.

Modification Type:MinorLast Reviewed:11/18/2005
Keywords:kbdocfix kbdocerr KB884775 kbAudEndUser