Anyway, I am working on a project and have compiled a dictionary text file of english language words. I want to use this dictionary for an autocomplete feature that I would like to add to the program.
I am having trouble finding anything about either
1) an autocomplete library I can #include into my code.
2) how to write my own.
Can anyone point me to a pre-written (free) autocomplete lib or
explain to me how they work so I can write my own.
Thank you all, and nice to be back!!
Michaela
p.s.
I need it to be in either C or c#. If i can get the algorithm in C then I can just convert it to c#
Thank you guys, and you were right. It is very simple. I know this version is O(n) but for a first try, I am happy. I will be working on something better, such as a bst method or something like that.
This version uses '1' and '2' to accept words because std::cin skips whitespace so I cannot get ' ' to show up. Anyway, when we put it in c# it will be much better because then we can just use the onchange event and have a text box to work with. :)