DMP - Chapter 8


Character I/O and redirection


Assignment #8: Due Nov. 16, 1995.

Write a program that will read lines of user input until EOF (Ctrl-D). For each line, print the number of non-white characters and number of words. At the end (after the EOF), print the number of lines entered, the total number of non-white characters and the total number of words.

Answer: word_count.c


Go to Ich's Home Page


Go to the Peabody Home Page


For comments or questions email to: ich@peabody.jhu.edu