I need to write a program that counts occurences of words in a text inputed by the keyboard (or with the < token from a text file).
I thought about doing it with 2 arrays - one for the words and one for the count (same index as the words).
But I believe it's just too slow to do it that way, right?
Can someone suggest a better way (We have not yet learned to use structures so we're not supposed to do that...)
Thank you very much!