[Courses] [C] Beginner's Lesson 16: an exercise

KWMelvin kwmelvin at intrex.net
Tue Dec 31 11:00:15 EST 2002


Here is an interesting suggestion for an exercise for this lesson:
Program 16-3.c makes a list of the words that appear in the file
that is entered on the command-line. For example, the command:
$ ./16-3 16-3.c
would list all the words that appear in the 16-3.c file. Modify
16-3.c so that it also lists the number of times that each word
in the list appears in the file, for example:

Modify 1
example 2
in 4
is 2
number 1

Happy Programming!

More information about the Courses mailing list