Q: The enclosed
CD-ROM has several directories. What is C#Programs?
A: This
directories include the C# source code for all of the programs in
the book. Code fragments (small pieces of code that are not
actually programs) are not included.
Q: Where is Visual
C#?
A: Visual C#
(more accurately, Visual Studio.NET which includes C#) does not
come with C# for Dummies. Microsoft releases Visual Studio.NET on
Feb 13, 2002.
Q: What about
"Bonus Chapters"?
A: There are
topics which the reader should not undertake the second day after
beginning with C#. However, I consider a few of these topics to
be of sufficient interest to include on the enclosed CD-ROM.
"Bonus Chapter 1.pdf" describes various types of collections
including linked lists. This chapter first describes them and
then takes you through the steps of writing a linked list
program.
Most programs start out with bugs. A programmer, even a C#
programmer, must learn how to ferret these bugs out so they can
be fixed. "Bonus Chapter 2.pdf" takes you through the steps of
finding and correcting some bugs that I purposely placed in an
example program.
Q: The Bonus
Chapters have the extension ".pdf". What is a PDF file and why
can't I read it?
A: A PDF file
is an Adobe Acrobat file. This file format supports both text and
pictures. You will not be able to read the Bonus Chapters unless
you have Adobe Acrobat Reader 5.x installed on your machine. The
directory "Reader" on the CD-ROM contains a file "ar500enu.exe".
Double click on "ar500enu.exe" and follow the instructions to
install Acrobat 5 on your machine. Once the Adobe Acrobat Reader
5 has been installed, you can double click on the "Bonus Chapter
1.pdf" or "Bonus Chapter 2.pdf".
Q: If I already
have a version of Acrobat Reader installed, should I remove it
before I install 5.0?
A: Personally, I always have but I don't think that it's
absolutely necessary.
Q: Can I print the
chapters instead of reading them online?
A: The
Acrobat Reader supports printing.
Q: Can I download
the Adobe Acrobat Reader myself if I want a newer model or if I
want other than the English version.
A: The
Version 5.0 contained on the CD-ROM is the current as of the
book's publication (early 2002). However, if you want to look for
a later version or you just want to see what other types of
readers that Adobe offers click on
.
Q: What are the
other directories?
A: A number
of third party companies have begun generating utilities to aid
you in writing quality C# programs. I have included a few of
these utilities. These utilities are offered only as examples. I
do not warrant them in any way. I will be unable to answer any
questions concerning these tools.
Q: What if I have
some other question?
A: You may
send your question to the author's
mailbox. If your question is a new one,
it will be added to the FAQ; however, if it already listed above,
your question will be deleted without comment.
Edition 1, First Printing:
Page 39 Table 3.1
The column labeled "size[bytes]" is off by a factor of 2.
Thus, the first row, labeled "sbyte" is actually 1 byte long
rather than 2 bytes and "short" is actually 2 bytes rather than
4.
Page 55 Next to last expression on page
The expression 1 * 6 (one times 6) is equal to 6 (duh!) and
not 7 as quoted in the book. I mis-wrote '*' instead of '+'.
Page 189 The RemoveWhiteSpace Program
Within the function RemoveSpecialChars() the call
'IndexOf(cTargets)' should be 'IndexOfAny(cTargets)'. The program
is correct on the CD-ROM.
Page 229
The name of the program in the initial comments is
misspelled. (BankAccountContructorsAndFunction should be
...Constructors...)
Page 234
On the last line, SomeOtherClass() should be
SomeOtherMethod().
Page 242
The name class in the example is misspelled: SavingsAccout
should be SavingsAccount.
Page 247
The first line in the example program is missing a closing
semi-colon. (Should be "using System;")
Page 275
There's an extra semi-colon at the end of the example
program.
Page 282
The word 'know' is missing in the Tip: "Don't look at me; I
don't know why..."
Page 306
The very first line on the page defines the factorial of N
as N * N - 1 * N - 2 *... Although the meaning is clear, actually
the equation should be outfitted the proper parentheses: N * (N -
1) * (N - 2) * ...
Page 335
The checklist at the bottom of the page refers to two
classes ReadBinary and WriteBinary. The names of these classes
were changed to BinaryReader and BinaryWriter. In addition, the
Write() methods were overloaded to Write(char), Write(byte),
Write(int), etc.
Page 390
The variable nSum is not initialized in the example program.
Add "int nSum = 0;" at the beginning of the function
AverageInput().
Page 397
The word Interface should not be capitalized in the small
code snippet.
On Page 12 of your book, specifically the
"What's C#?" section; wherein C-sharp is said to be the same note
as B-flat...
Not so! It's D-flat.
First: Sharps are always a half-step above a given note (next up from C = C#). Whereas Flats are always a half-step below a note (below D = Df).
Second: Each Sharp-note is also known by the Flat version of the note above (C# = Df = the same note) -- thus these half-step pitches always have 2 names.
Third: To confuse matters: There are no ½-notes between B&C and E&F in the Western Scale. Ever. That's the big secret in Music Theory. B&C and E&F are the white keys on the piano that don't have black keys between 'em.
Thus, the scale goes:
A A# B C C# D D# E F F# G G#
A, etc....
(Bf) ·· (Df) (Ef) ··(Gf)
(Af)
That makes C# = Df (the half-note between
C&D) and not = Bf (the half-note between A&B)
There you go!