I am having trouble defining and creating said array, however.
template <typename DataType, typename KeyType> class HashTable {
public:
HashTable(int intTableSize);
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;
void hashFunction();
void hashFunction(const DataType& nodeValue);
}
contains private members:
Table <DataType, KeyType> *dataTable;
int tableSize;
The dataTable needs to be of data type array. How do I implement this change? Do I need to make changes to the typenames? When calling dataTable in HashTable.cpp, I get an error stating that " 'dataTable': Identifier not found. Thanks for any help