STY C in 21 Days
Home Up

 

 

Support Page

*** UNDER CONSTRUCTION ***

 

 

 

This is the Author's support page for Sams Teach Yourself C in 21 Days, Fifth Edition. This includes the following items:

Related Links

Download Source Code

Known Problems

Common Questions

You should note that this is support only for the fifth edition of the book; however, most items presented here will apply to early editions as well.

 

Related Links

 

Click here for the Publisher's support Web page for this book

Click here to see the Publisher's bookstore page for this book

Click here to buy this book at Amazon.com

Click here to buy this book at BarnesandNoble.com

Click here to buy this book at Fatbrain.com

If you have Sams Teach Yourelf C for Linux Programming in 21 Days, you can get support at http://www.zip.com.au/~erikd/BOOK/faq.html

 

Download Source Code
The source code for this book is available as a single zip file. You can retrieve it by clicking the following link:

** Zip File with Days 1 to 21 **

If you prefer, you can purchase the source code for this book on a CD for $24.95 (U.S.) or $29.95 (outside the U.S.). Alternatively, you can purchase the source code for this book on 3-1/2" diskette for $19.95 (U.S.) or $24.95 (outside the U.S.)
As a free bonus, the CD also includes the CodeWarrior Lite C compilers for Microsoft Windows and the Macintosh. There is also a copy fo the GNU shareware C compiler for PCs running DOS. These compilers are provided as a free bonus. No support is available for the complers from either the authors or the compiler publishers.

To purchase the CD, send a check drawn on a U.S. bank, a postal money order in U.S. dollars, or credit card information to:

Peter Aitken
P.O. Box 3214
Durham, NC 27715
USA

Include:

Name __________________________________________________

Address ________________________________________________

City _____________________________ State _____  Zip _________

_____ Check    _____ Money Order     _____ Visa    _____ MasterCard

Credit Card Number ____________________Expiration Date _______

Signature ____________________________ (Credit Card Orders Only)

*** Please allow 3 to 4 weeks for delivery.

Note: This offer is made by the authors and not by the Publisher

 

Known Problems
The publishing company introduced errors during the layout of the first printing of this edition of this book. These errors were fixed in later printings. Following are known errors in the first printing of the Fifth Edition:

Page 36:
Lines 16 and 22 should return a value. New lines are:

16:       return (1);

22:       return (1);

--------

Page 43:
The variable name 1999_tax is illegal. This was suppose to be presented as _1999_tax (with a leading underline).

--------

Page 105:
The following lines of Listing 5.2 needs modified:

12: z = half_of(x);

16: z = half_of(y);

--------

Page 113:
The line of code near the top is missing (y). The complete line is:

x = half(third(square(half(y))));

--------

Page 113:
The following lines were missing their parameters:

a = half(y);
b = square(a);
c = third(b);
x = half(c);

In the book the parameters (y), (a), (b), (c) are dropped.

--------

Page 115:
Line 20 needs to be modified. The (x) was dropped in the book:

20: f = factorial(x);

--------

Page 337:
Line 9 of Listing 14.2 should be:

9:  while ((ch = getchar()) != '\n')

--------

Page 337:
Line 12 of Listing 14.3 should be:

12:  while ((ch = getchar()) != '\n' && x < MAX)

--------

Page 339:
Line 10 of Listing 14.4 should be:

10:  while ((ch = getch()) != '\r')

--------

Page 340:
Line 13 of Listing 14.5 should be:

13:  while ((ch = getch()) != '\r' && x < MAX)

--------

 

Common Questions

 

Does a compiler come with my operating system?

If you are running Linux, then you should have the GNU compiler which is included with all versions of the Linux operating system. If you don't have Linux, then you most likely need to purchase a compiler. If you are running Microsoft Windows, then you need to purchase a compiler.

 

Is command.com a compiler?

No. Command.com is not a compiler.

[Brad's Page] [Resume] [Writings] [Philmont] [Coding]

Best experienced with

Click here to start.

bookbanner2a.gif (41968 bytes)