- It reads in lower-case words, ending with the word "END"
- Then, it stores them in a linked list.
- Then, it reads in a single letter.
- Then, it prints out all words that start with that letter, in
reverse order from how they were read in.
- Don't forget to delete the list!
Makefile
Download and use Makefile.
|
Example runs:
~/$ ./hw
Enter words followed by END:
one two three four five six seven eight END
What letter? t
three
two
~/$ ./hw
Enter words followed by END:
aa ab ac ad END
What letter? a
ad
ac
ab
aa
~/$ ./hw
Enter words followed by END:
aa ab ac ad END
What letter? b
|