Article ID: 128757 - View products that this article applies to.
This article was previously published under Q128757
This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Code Complete, ISBN 1-55615-484-4.
As errors are found in our books, corrections are made so that these errors do not appear in future printings. The following list of corrections is broken down by the printing number the errors were found in. If the printing you have is later than the printing the error was found in, the error will not exist in your copy of the book.
The printing number can be found on the Library of Congress page, immediately following the Title page. Just below the line that says "Printed and bound in the United States of America" are a row of numbers. The very first number is the printing number.
The following topics are covered:
Errors Found In The First PrintingPage 48, 2nd paragraph, last 2 sentences:
"IBM popularized Basic on microcomputers by including a Basic interpreter with the IBM PC. It is now commonly available in both interpreted and compiled forms."
Page 48, last paragraph, line 3:
Page 96, 1st and 2nd code fragments:
Page 176, sentences in the paragraph below the code fragment:
"In a development environment with a group of programmers, only the package specification would be released. It would be impossible for a programmer working on another package to look up the underlying type of Coordinate_t. The information is literally hidden."
"In a development environment with a group of programmers, you could distribute only the package specification, which would make it harder for a programmer working on another package to look up the underlying type of Coordinate_t. The information would literally be hidden."
Page 204, code fragment at bottom of page. Two lines should have "i"s added to read:
Page 205, first paragraph, first line:
Page 205, first code line:
Page 205, second code line:
Pages 256-7. The code fragment that begins on page 256 and continues on page 257 should be replaced with the following:
Page 257, first paragraph, sixth line:
Pages 257-8, change the code fragment that begins on the bottom of the page and continues onto the next page to:
Page 258, first paragraph, second line:
Page 332, second code fragment:
"InputRec[ RecCount ]"
"InputRec[ RecCount-1 ]"
Page 461, code fragment at bottom of page:
4th line change:
"Sum := 0;"
"Sum := 1;"
8th line should be deleted:
"OldSum := Sum;"
11th line change:
"Crnt := OldSum;"
"Crnt := Sum;"
Page 471, second code fragment:
"MaxPos := Length( InputStr );"
"MaxLen := Length( InputStr );"
Page 701, line of code inside the for loop at the top of the page:
The code fragment at the bottom of the page, in the comment line, the order of the "BC" pairs should be changed to read:
"/* !B!C !BC B!C BC */"
In the line below the comment line, the "0, 2, 3, 2" sequence should read:
"0, 3, 2, 2"
In the line below that one, the "1, 1, 2, 1" sequence should read:
"1, 2, 1, 1"
Page 719, code fragment at bottom of page, 3rd line:
"Value = Value + Coefficient( Power ) * x"
"Value = ( Value + Coefficient( Power ) ) * x"
The page numbers in the table are wrong and should be corrected. They are all off by 4. To get the right page number, take the current page number and subtract 4.
Page 802, first full paragraph from the bottom of the page, last sentence:
"To get a copy of his report..."
"A copy of the report is included as an appendix to Decline & Fall of the American Programmer (Yourdon 1992)."
Change the paragraph that begins with:
Change the phone number in the same paragraph from:
Page 826, after the paragraph that begins "Yourdon, Edward, 1989b" insert the following new paragraph:
"Yourdon, Edward, 1992. Decline & Fall of the American Programmer. Englewood Cliffs, N.J.: Yourdon Press."
Index entries for "flawchart" should be added. The only time it's referenced is on page 57.
The entry for The Psychology of Computer Programming should have page number 771 added.
The index entries for the books Software Tools and Software Tools in Pascal are missing and should be added. The page references are as follows:
Software Tools, 497, 511-12
Software Tools in Pascal, 497, 511-12
Errors Found In The Sixth PrintingPage 313, code fragment, second line:
Page 395, last paragraph:
Delete the phrase:
"described in Table 17-2,"
At the end of the paragraph, add the sentence:
"Table 17-2 describes a method for counting decision points."
Page 395, last line of the table:
Delete the sentence:
"If the case statement doesn't have a default case, add 1 more."
Page 455, second code example, second block of code, change the following:
The result of the above changes should look like:
Errors Found In The Tenth PrintingPage 332, code fragment 2:
"fgets( InputRec[ RecCount - 1 ], MAX_CHARS, InFile )"
"fgets( InputRec[ RecCount - 1 ], MAX_CHARS, InFile ))"
Page 347, paragraph 3, sentence 1:
"...that don't support structured controls correctly."
"...that don't support structured control constructs correctly."
Page 540, Table 22-1, Possible Range of Factor's Influence column:
Page 562, margin quote:
Page 707, bullet 4, sentence 1:
"...put a negative sentinel value in the first element past the end of the array..."
"...put a negative sentinel value in the first array element after the last valid data entry..."
Page 708, paragraph 1, sentence 2:
"...the effect is the same as if..."
"...the effect is often the same as if..."
Errors Found After The Tenth PrintingPage xviii:
Change email address to:
Page 240, 2nd left margin note:
"Sum is computed as 10*1.0."
"Sum is computed as 10*0.1."
Page 241, 6th paragraph, 2nd sentence:
"The BCD scheme is slower and takes up more storage space but prevents many common rounding errors."
Page 443, first example:
Change the semicolons to commas:
Page 462, 2nd code example, third line:
Change the two references from:
"(Freedman and Weinberg 1982)"
"(Freedman and Weinberg 1990)"
Page 191: EvenIndex Should Be EventIndexOn page 191, in the final paragraph of the section "Naming Loop Indexes", change:
"They also make array accesses clearer. Score[ TeamIndex, EvenIndex ]"
"They also make array accesses clearer. Score[ TeamIndex, EventIndex ]"
Page 237: Add Colon Before Equal Sign in First ExampleOn page 237, the first code sample (Pascal) should use := instead of =
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.
Contact us for more help
Connect with Answer Desk for expert help.