Part I: Getting Started.
Chapter 1: Getting Started.
Chapter 2: Understanding Objects.
Part II: Understanding C# Syntax.
Chapter 3: Understanding Data Types.
Chapter 4: Understanding C# Statements.
Chapter 5: Understanding Reference Data Types.
Chapter 6: Making Decisions in Code.
Chapter 7: Statement Repetition Using Loops.
Chapter 8: Arrays.
Part III: Writing Your Own Classes.
Chapter 9: Designing Classes.
Chapter 10: Designing and Writing Custom Classes.
Chapter 11: Exception Handling and Debugging.
Chapter 12: Generics.
Part IV: Storing Data.
Chapter 13: Using Disk Data Files.
Chapter 14: Using Databases.
Chapter 15: Inheritance and Polymorphism.
Appendix A: Exercise Solutions.
|2||38||Error in Text|
The paragraph under Figure 2-10 instructs the reader to click the
But it should be
|43||Error in Table|
In the table on page 43, it should be txtDisplayOutput instead of txtResult.
The code is correct as is the narrative. Only the table is wrong.
|44||Error in Code|
" City: " + txtAddress.Text +
" City: " + txtCity.Text +
Mail Label program needs to include the ' this.Close' click event --
Author replies: Because the code for the Exit button is the same for every program in the book, and is only one statement (i.g., Close()), it isn't printed in the book. However, it is in the download code for the program.
|65||Error in Code|
"as larget as e<sup>38</sup>"
"as larget as 10<sup>38</sup>"
|116||Typo in Text|
|120||Error in Text|
In the last paragraph before the "Replacing a Substring" section on the page:
its Text property to the new string
the new string to its Text property
|138||Typo in Text|
Near the end of the largest paragraph on the page:
|144||Error in Code|
In the code after the "Nested If Statements" heading, the code says
Price = FULLPRICE; If (age => 21)
But it should say ">=" not "=>"
"case 1" repeated should be case 1, case 2, case 3,....
|151||Error in Code|
The code at the top of the page should contain several cases for the switch statement. Your code has a switch statement with three ?case 1?s.
|252||Typo in Code Comment|
The comment in the code:
// Is this card place in the deck is "unused"?
// Is this card place in the deck "unused"?
|301||Error in Code|
second line of code from the bottom says:
mySort.quickSort(data.Length-1); // Sort the data
The function quickSort takes two parameters and it should be
mySort.quickSort(0, data.Length-1); // Sort the data
|467||Error in Code|
If (answer == 0)
if (answer == 0)
|469||Error in Code|
Page 469 requires the following 2 lines for the code to serve its purpose:
if (birthday.DayOfYear > currentDate.DayOfYear)
age -= 1;
|472||Error in Code|
const int FOURPOUNDS = 48;
const int FOURPOUNDS = 64;
because there are 16 ounces in a pound, not 12
|8||474||Error in Code|
The code on page 474 generates inaccurate numbers. The code should read:
start--; // This is the new line
female = 3.5 * start - 108
male = 4.0 * start - 128
|Typo in Source Code|
In the readme.txt file in the zip archive, from chapter 5 and below: