The programming assignment is to read a text file, extract the words from it, and save them in a 2D array that contains the word and the number of occurrences of that word. For example, if a text file contains the words "first" "second" "third" "second", the array should contain - first 1 second 2 third 1. The code I have posted creates a 2D array that contains first 1 second 1 third 1 second 1, so the count for second does not increment and word is printed again. I am saving each new word in the hist array and the number in the 31st element of the array. Then, if the word does exist I want to increment that number. doesWordExist is function that returns FALSE if the word does not exist and TRUE if the word exists. The function has been tested and works correctly. I am also initializing the arrays. Pointers aren't allowed.
Please help me with this! I have been working on this for a long time and would appreciate your help very much.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.