Creating a C# Program ......................................................................................770
Naming Your Source Files ............................................................................771
Executing a C# Program ..............................................................................771
Compiling C# Source Code ..........................................................................772
The C# Compiler and the .NET Runtime ....................................................773
Your First C# Program ........................................................................................773
Displaying Basic Information ............................................................................774
C# and the Web ..................................................................................................776
Summary ............................................................................................................778
Q&A ....................................................................................................................778
Workshop ............................................................................................................779
Quiz ..............................................................................................................779
Exercises ........................................................................................................779
BONUSWEEKINREVIEW 781
APPENDIXAASCII Character Chart 783
APPENDIXBC/C++ Reserved Words 789
APPENDIXCWorking with Binary and Hexadecimal Numbers 793
The Decimal Number System ............................................................................793
The Binary System ............................................................................................794
The Hexadecimal System ..................................................................................794
APPENDIXDPortability Issues 797
The ANSI Standard ......................................................................................797
The ANSI Keywords ....................................................................................798
Case Sensitivity ............................................................................................798
Portable Characters ........................................................................................800
Guaranteeing ANSI Compatibility ....................................................................800
Avoiding the ANSI Standard ..............................................................................801
Using Portable Numeric Variables ......................................................................801
Maximum and Minimum Values ..................................................................803
Classifying Numbers ....................................................................................809
Converting a Character’s Case: A Portability Example ................................814
Portable Structures and Unions ..........................................................................815
Word Alignment ............................................................................................815
Reading and Writing Structures ....................................................................816
Using Non-ANSI Features in Portable Programs ........................................817
ANSI Standard Header Files ........................................................................820
Summary ............................................................................................................820
Q&A ....................................................................................................................820
xx Sams Teach Yourself C in 21 Days
00 448201x-FM 8/13/02 11:16 AM Page xx