Questions tagged [dictionary.h]
The dictionary.h tag has no usage guidance.
6 questions
1
vote
1
answer
63
views
What is the usage of creating DICTIONARY_H in pset5?
I cann't understand when to use the preprocessor directives as (ifndef, define ,etc.)? In dictionary.h, what is the importance of writing those statements? and regarding the reason that was mentioned ...
0
votes
1
answer
34
views
PSET5 Unload() recursive sub-function causes 112 bytes to leak - why?
I've already fixed this issue playing around with my code, but I cannot seem to understand why this (former) version of my recursive function leaks 112 bytes (2 nodes).
Can anyone please help me ...
0
votes
1
answer
13
views
Speller - Where to place struct
Speller pset: I am working on building a trie for the dictionary (load). In order to do so, I know I need to create the struct node. I thought that this was supposed to go in the dictionary.h file ...
0
votes
1
answer
130
views
Dictionary.h expected identifier
When I try to create my code I get the following errors:
./dictionary.h:26:29: error: expected ';' after top level declarator
./dictionary.h:30:6: error: expected identifier or '('
./dictionary.h:...
0
votes
1
answer
611
views
pset5 check50 error
I finished pset5 dictionary's implementation, seems working fine in the appliance but after running check50 on it, it shows following error:jharvard@ubuntu:~/Dropbox/pset5$ check50 2014.fall.pset5....
1
vote
1
answer
1k
views
why do I need dictionary.h?
I am not sure why I need dictionary.h for pset5. I feel like I can define the functions check, load, size, and unload in dictionary.c.
dictionary.c is set up so I can define the functions in it ...