Spelling checker...

I got a question to ask. i realy no idea to do this. plz help.

write a program for a spell checker application. Program should ask a user to enter a word. The program should then look up that word in the file. If the word exists, program should print "correctly spelled". Then program should try to locate other existing words that might be the word the user intended to type. For example, you can try all possible transpositions of adjacent letters to discover that the word "default" is a direct match to the existing word. OF course this implies that your program will check all other single transpositions such as "edfault","defalut" and so on. When you find a new word that mathces one in the existing word, print it in a message, such as
"Did you mean "default"?". Make sure you use C++ string class to complete this program without c-string.

(have to pass up in two days..its a assignment 4 me. plz help.)
I might start by solving the 'exact match' case first. That seems pretty easy and should get you going...

Good luck!
What do you have so far?
Topic archived. No new replies allowed.