A New Goal
I would like to write a program that
Reads in a file
Counts the number of times each unique word is read.
Allows the user to sort by word
Allows the user to sort by frequency
Allows the user to search by word.
There will be no more than 5000 words.
I am not sure how to do this, but I think I will need the following
Something to store words and word count in.
Something to "strip" words of extra characters and make them all one case.
I have
created a
directory
moved MyUtils.* there along with a Makefile.
Added function
MakeLower
and
Strip
Built a test routine to stress these functions.
Take a look.
I added
A ActionT which controls the actions I will allow the player to take.
A WordCount.cpp shell
This started with a basic desing
Read in the word file while the user is not done Get User action Process user action
I replaced this with a set of high level functions.
I included ActionT.h and MyUtil.h
I fixed the Makefile so everything will compile and link.
Note, there are two program in this directory now.
WordCount has a main
utilTest has a main.
Both of these depend on MyUtil.