T
tmshaw
I'm a newb in a c++ class...
I need to read the standard input into a couple strings. Then determine
whether or not the same word is used IN SUCCESSION (ex. this cat cat is
really mean.).
Then count and print the word and how many times it was used. So using
the above example, it would print out the words that were used in
succession and how many times they were used. For example, the word cat
was used 2 times inthe above example.
I'm pretty much stuck on what sort of test to run to compare two or
more unknown words for sameness....
we aren't very far in the class past strings and vectors...
thanks for any help.
I need to read the standard input into a couple strings. Then determine
whether or not the same word is used IN SUCCESSION (ex. this cat cat is
really mean.).
Then count and print the word and how many times it was used. So using
the above example, it would print out the words that were used in
succession and how many times they were used. For example, the word cat
was used 2 times inthe above example.
I'm pretty much stuck on what sort of test to run to compare two or
more unknown words for sameness....
we aren't very far in the class past strings and vectors...
thanks for any help.