0
可能重複:
What algorithm gives suggestions in a spell checker?C++暗示錯誤拼寫的單詞
應在C使用什麼樣的算法++,其目的是從文本文件閱讀,並給予建議,爲錯誤的程序拼寫單詞?
可能重複:
What algorithm gives suggestions in a spell checker?C++暗示錯誤拼寫的單詞
應在C使用什麼樣的算法++,其目的是從文本文件閱讀,並給予建議,爲錯誤的程序拼寫單詞?
我強烈建議你看看正則表達式。 – dotTutorials
我強烈建議遠離這些任務的正則表達式。 – amit
http://en.wikipedia.org/wiki/Levenshtein_distance對於這類問題很有幫助。 – Maroun