I've written some lines of code to implement the trie alogorithm for loading the dictionary. I'm facing the following issue:
- Compiling speller.c is giving me some errors, one of which is the below:
I wanted to place the character at dictionary to the root -> dependent[k] position (line 41 in below code link), which, I guess, is not allowed with the current syntax. How am I then supposed to place the character at this position.
Within the else statement (line 62 in below code), I was planning to recursively create a new_node till the length of the word. But the current syntax seems wrong as compiler is throwing a couple of errors on this line. Can you suggest how do I go on implementing this line?
Is there a way to check the correctness of the load function without implementing the other 3 functions?
Here is the code: http://pastebin.com/e0EKFBbq
Thanks in advance.
P.S. It is still a work in progress and I've only now concentrated on loading the dictionary using trie.