Demonstration C Programs
by Dec McSweeney

Note: These programs require System resources. You must ensure that !System has been 'seen' before running this program. The latest version of !System can be found in the root directory of this disc.

Running !C results in the compiled C program !C.wbs being run. The program reads in strings from the keyboard and writes them to the Basic data file !C.BStrings, then prints 'Thank you and goodnight!'. The Basic program !C.ReadString can be used to print out the contents of this file.

!C contains an additional program, !C.RWInts, which reads integers from a Basic data file !C.BasicNums, doubles their values and writes the results to the Basic data file !C.CNums. The Basic program !C.ReadNums can be used to examine the contents of this file.

The source code files for these programs are saved in !C.c, and can be examined by loading them into Edit.
