brandon-a / CIS-22C-Group-Project

Using different data structures to organize USDA nutritional facts.
0 stars 0 forks source link

BSTs should use pointers #3

Closed theorangepotato closed 8 years ago

theorangepotato commented 8 years ago

The BSTs should use pointers, not pass the actual objects, or references to them. That way there is significantly less memory usage, and it can be easier to deal with (kinda). And, for future reference, the convention for passing a pointer by reference is *&, not the other way around. That should save you some trouble, trust me.

Also, possibly a separate issue, will there have to be a second BST class for comparison by secondary key? That's what it looks like to me. I mean, for now let's just focus on the one, cause it's a relatively small change, but I was just clarifying and ensuring consensus.

brandon-a commented 8 years ago

I changed the BST to use pointers. I'm not sure if I did it correctly, I'll leave this open for now.