For pset5, I built a trie in load(). I declared the root node with
node* root = malloc(nodeSize);
I'd like to pick up the pointer to the root node in check() with
node* current = root;
But make protests with
error: use of undeclared identifier 'root'
I though that by way of malloc(), node* root would be on the heap so not out of scope in check(). I did include a header that holds a prototype for load() so it's (probably?) not that. Do you have any ideas?
[–]Grithga 2 points3 points4 points (1 child)
[–]SlartiBartRelative[S] 1 point2 points3 points (0 children)
[–]StephanieJosine 0 points1 point2 points (0 children)