For my assignment I have to create a hash table and I've managed to write most of the hash table until I realized that I declared a static array in my header file. The hash table is suppose to implement a dynamically allocated array and I'm wondering where this array would get created? Would I put it in my header file or do I put it inside my constructor. If I create it in my constructor how will my other member functions access and modify the array since it's in the scope of my constructor. Thank you
Item* ptr = new Item[bucketcount];
new[]too).Item* mem_var;. Then in my constructor I would domem_var = new Item[bucketcount];? Is this fine? Then I would usemem_varin my other member functions such as (add, remove, etc.) to access my array.