diff options
Diffstat (limited to 'Project1/Contacts.h')
| -rw-r--r-- | Project1/Contacts.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Project1/Contacts.h b/Project1/Contacts.h index 31e497b..f453350 100644 --- a/Project1/Contacts.h +++ b/Project1/Contacts.h @@ -16,6 +16,9 @@ public: contact(contact&& move); contact& operator=(contact&& rhs); + int Get_index(); + void Set_index(int id); + const char* Get_firstName(); void Set_firstName(const char* firstName); @@ -40,6 +43,7 @@ public: void print(); private: + int _id; const char* _firstName{ }; const char* _lastName{ }; const char* _streetAddress{ }; @@ -82,7 +86,7 @@ public: struct contact_struct { int a = 0; - size_t id = 0; + size_t id = contact_list::get_length; size_t count = 0; char Name[30]; char Email[105]; |