C++ program to perform to read non-punctuated text and give word frequency
Posted on 1998-04-14
How to implement a C++ program to perform a case-insensitve, frequency of occurance, analysis of words contained within a non-punctuated text. Only blank spaces between words, newline characters, and a single $ to mark end of text.
Example text: Yellow Blue Green BLUE Red GREEN yellow $
Example output: Word: Frequency:
GREEN 2 CONVERT ALL WORDS TO
RED 1 UPPERCASE
YELLOW 2 in alphabetical order