The text assumes that a file specdef.i of "headers" and definitions has been included into all programs; this is Program 3 on page 7.
Program 2 in the text (ndist.c) is code to test
solutions to Exercise 1 on page 3. To run this, you will need to supply a file
mysolution.i (as well as specdef.i) to be included.