Input:
The C Programming Language The Cat in the HatOutput:
C Programming Language, The Cat in the Hat, The Hat, The Cat in the Language, The C Programming Programming Language, The C The C Programming Language The Cat in the Hat in the Hat, the Cat the Hat, the Cat in
File: Input.c
- reads initial data
File: Output.c
- writes the results
File: LineStorage.c
- stores the input lines in a suitable data structure for later access
File: ShiftSort.c
- creates rotated versions of input lines and sorts them
File: WordTable.c
- reports whether a word appears in a table of 'noise' words
kwic_ex1
(The project directory):
File "main.c
"Directory
Input
Directory
Output
Directory
LineStorage
Directory
ShiftSort
Directory
WordTable
Directory
include
the '.h' files for all modulesDirectory
sysDoc
text documents describing coding standards for the project, program organization, list of all files ...
LineStorage.c
...In directory LineStorage, type the command:
make runtestThe make command causes the two files
LineTest.c
and driver.c
to be compiled,
linked to create an executable file named driver,
and then driver is executed.If the output from driver contains error reports, you have done something wrong!