Compare two text files - spellchecking program in C

前端 未结 1 925
日久生厌
日久生厌 2020-12-12 08:15

I\'m writing a spellchecking program that will compare a user\'s text file with a dictionary to see if the words they entered are in the dictionary. If not, an error message

相关标签:
1条回答
  • 2020-12-12 08:27

    The usual way of solving this is to first read the dictionary and build a hash table. You'd then read one word at a time from the input file and flag an error if the word doesn't exist on the hash table.

    0 讨论(0)
提交回复
热议问题