I have an assignment in which we have been given a file. each line of file has 2 words, first one correctly spelled the other.we have to get each word (the correctly spelled and the wrongly spelled) and insert it into hash table. the hash fn is (sum of ascii value)%100. eg of file input is: acheive achieve adress address athiest atheist
It would be great if someone can help me write code in c to insert the words into table. i have not been able to figure out why i m getting segmentation fault in my code.
Aucun commentaire:
Enregistrer un commentaire