Hi can somebody can help me in understanding pset 5 on how to implement load function using a hash data structure.I can't understand how to implement it.

  • did you watch Zamyla's walkthrough and the short on hash tables? – kzidane Jun 17 '15 at 11:21
  • yes but i dont know how to enter the values of the dictionary inside the hash table linked lists. – superhuman Jun 18 '15 at 19:21
  • try reading this study.cs50.net/hashtables and playing with the exercises there! – kzidane Jun 18 '15 at 19:25
  • thanks for that! but can you tell me how iterate the loop over the dictionary file and get the words separated in specific linked lists in the hash table. – superhuman Jun 18 '15 at 19:29

Try using fscanf: It goes through the file, copying each char into whatever you used to hold the output, until it find a \n newline character, space, or something like that. Pretty much it gives you the whole word.

You must log in to answer this question.

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