Advertisement
fueanta

HashTable :: Hash.h

May 17th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. //
  2. // Created by Taqui on 5/13/2017.
  3. //
  4.  
  5. #include <iostream>
  6. #include <cstdlib>
  7. #include <string>
  8.  
  9. #include "Item.h"
  10.  
  11. using namespace std;
  12.  
  13. #ifndef HASH_TABLE_PROJECT_HASH_H
  14. #define HASH_TABLE_PROJECT_HASH_H
  15.  
  16. class Hash
  17. {
  18. private:
  19.     static const int SIZE = 10;
  20.     Item *hashArray[SIZE];
  21. public:
  22.     Hash();
  23.     int hashFunction(string);
  24.     void addItem(string, string);
  25.     void showBucket(int);
  26.     void showBucketFromKey(string);
  27.     void showHashTable();
  28.     Item *searchItem(string);
  29.     void deleteItem(string);
  30. };
  31.  
  32. #endif //HASH_TABLE_PROJECT_HASH_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement