Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by Taqui on 5/13/2017.
- //
- #include <iostream>
- #include <cstdlib>
- #include <string>
- using namespace std;
- #ifndef HASH_TABLE_PROJECT_ITEM_H
- #define HASH_TABLE_PROJECT_ITEM_H
- class Item
- {
- private:
- string name;
- string phoneNumber;
- int indexNo;
- public:
- // pointer to next item
- Item *next;
- // constructors
- Item();
- Item(const string &name, const string &phoneNumber);
- // setter getters
- const string &getName() const;
- void setName(const string &);
- const string &getPhoneNumber() const;
- void setPhoneNumber(const string &);
- int getIndexNo() const;
- void setIndexNo(int indexNo);
- // show function
- void show();
- };
- #endif //HASH_TABLE_PROJECT_ITEM_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement