+1(316)4441378

+44-141-628-6690

Archive for the ‘C or C++’ Category

C or C++ Dictionary Trie

Write this program is C. Please comment code. And please show the results as well. As well as the execution on the command line.

You are given Shakespeare RomeoandJuliet.txt file which contains the whole book. (A large file). (Please use own files to test out code).
You are also given another text file called correctspelling.txt that contains correct spelling of words in the RomeandJuliet.txt. The correctspelling.txt file does not contain every word in RomeoandJuliet.txt. Each word of correctspelling.txt it on its own line. This file is in alphabetical order (but being in alphabetical order is not relevant). This is also a large .txt file.
You are basically looking for the misspelled words in Romeo and Juliet. If a word is not spelled like it is in correctspelling.txt then is in incorrect.
Take into account the 26 letters and apostrophe ( ). It is also case insensitive.
You will need to insert the words in correctspelling.txt into a dictionary tree. This tree should