Question: need HashTable.cpp implementation please // HashTable.h #ifndef HASHTABLE_H #define HASHTABLE_H #include #include using namespace std; #include BSTree.cpp template class HashTable { public: HashTable(int initTableSize); HashTable(const

need HashTable.cpp implementation please

// HashTable.h

#ifndef HASHTABLE_H #define HASHTABLE_H

#include #include

using namespace std;

#include "BSTree.cpp"

template class HashTable { public: HashTable(int initTableSize); HashTable(const HashTable& other); HashTable& operator=(const HashTable& other);

~HashTable();

void insert(const DataType& newDataItem); bool remove(const KeyType& deleteKey); bool retrieve(const KeyType& searchKey, DataType& returnItem) const; void clear();

bool isEmpty() const;

void showStructure() const;

double standardDeviation() const;

private: void copyTable(const HashTable& source);

int tableSize; BSTree* dataTable;//we need to use binary search tree }; #endif // ifndef HASHTABLE_H

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!