Unscramble the words

Ok , I want to write a program , that unscrambles words , I have a list of words , lets say 50 words , and I type 10 scarmbled words , and I want that program would unscramble them , can somebody tell me what functions I should use? I don't know where to start.
http://www.cplusplus.com/forum/beginner/3810/

That's probably a good start. It shows you how to put elements into a vector, and remove them from the vector.

You want to add each char into a vector, and remove them if they match against the currently tested word. If all are matched then you have a match :)

Loop through words and try to match against each one.
Another solution is to have an embedded loop.

e.g
for (loop through unscrambled words) {
for (loop through scrambled letters) {
check for match
if match then continue;
if not match then break;
}
was there a match?
}
Ok , thanks , I'll try to write some code in few days , then I'll post with my results.
Topic archived. No new replies allowed.