Guest User

Untitled

a guest
Nov 21st, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #ifndef H_ENTRY
  2. #define H_ENTRY
  3.  
  4. #include <string>
  5. using namespace std;
  6.  
  7. #define ID_SZ 3 // size of key
  8. #define ITEM_SZ 24 // max size for item description
  9. #define TBL_SZ 31 // default size for hash table
  10. #define OPEN "---" //defines free spot in hash table
  11.  
  12. // entry in hash table
  13.  
  14. struct Entry {
  15. string key; // key
  16. string desc; // description
  17. unsigned num; // no of copies
  18.  
  19. // constructor
  20. Entry(const string& k = "",
  21. const string& d = "",
  22. const unsigned& n = 0) : key(k), desc(d), num(n) {}
  23. };
  24.  
  25.  
  26. #endif
Add Comment
Please, Sign In to add comment