I am trying to write a crude-ish t9 type of autocomplete program. The way it works so far is it populates dict with like 100000 words, input is meant to take 3 letter, just like on a phone, then it goes through the dict and finds all the words that start with those letters, after this, the vector gets resized to one bigger, another string of 3 letters is input, then it gets stuck in the for ic1 and for ic2 loops
Can anyone see why it is getting hung up?
p.s. I am sure this method is barbaric, i just need to get it working.
I see where it is set to 0. I don't see where it is ever set to anything other than 0, which makes constructs like curPermut[index - 1].begin() very suspicious.
Ahh, it's updated much later. This mouse button of mine is going to get me in trouble. This mouse needs to be replaced. Keeps double-clicking when I single-click, which doesn't go over so well with the find dialog.
It would appear, though, that index can be 0 when the code snippet quoted above occurs which would not be good.