No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm working in implementing a hash table, and I'm running into a Seg Fault whenever I try to access my buckets :( Here's the code: simple test class [code] //TEST HASH!! #include "hashTable.h" #include <iostream> #include <string> using namespace std; int main() { hashTable htab(101); htab.insert("blah"); cout << htab.contains("blah") << … |
|
I'm making a binary expression tree, and to do so I'm reading in values and putting them into a tree node and a pointer to that tree node into a stack. How do I use the STL stack implementation with pointers to my TreeNode class? relevant code: [CODE] stack<TreeNode> s; … |