| |
| |
CPS 108 : Spring 2002 |
 | | By default, you should output every distinct word in the given files in alphabetical order, with its context (the three words before and after the it, if they exist), followed by the line numbers that span the full context of the word, and finally, the name of the file in which the word appears. |
 | | For the purposes of this program, a word is any sequence of non-white space characters separated from other words by white space (or the first or last word in a file). |
 | | The word whose context is given is printed in all-caps with every word of the context printed as it appeared in the file. |
| www.cs.duke.edu /courses/cps108/spring05/assign/02_kwic (694 words) |
|