0

I run my code and it cannot load the dictionary. I'm not sure if the problem is with my code or the file location. Anybody knows why? Thanks in advance.

enter image description here

2
  • Can't see anything wrong there. Have you change anything in speller.c? – Tritum Apr 18 '20 at 7:34
  • Thank you. It was because I didn't add return true at the end of the function. It works now. – thucnhu Apr 19 '20 at 9:09
0

check if you have returned true after loading the dictionary.

Also, initialize h as unsigned int as it might cause a problem later. Can't spot any other issues with the code.

1
  • Thank you. I added 'return true' and it worked. At first, it was 'return 0' and I thought these two were the same. I got it now. – thucnhu Apr 19 '20 at 9:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .