// comments.
These comments are legal in C++ but not in C.
#includes, constant and
variable declarations, a main() function, and if,
while, printf(), expression, and assignment
statements.
Functions are an important aspect of program design. Good program design involves breaking up the computation into small functions that are easy to comprehend.
printf() format specifiers.
This program also illustrates initialization of array variables.
hail.C, except that reference parameters
are implemented with C++ reference types.
This is much easier to understand than the use of pointers.
mywc.C, except that an enumerated type
is used to keep track of program state, and the file that it processes is
specified by a command-line argument.
This program illustrates the use of FILE * variables and the
use of fopen() to open a file.