aboutsummaryrefslogtreecommitdiff
path: root/Project1/Contacts.h
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-26 16:41:41 -0800
committerConnor McDowell <[email protected]>2024-02-26 16:41:41 -0800
commit5d43b761af021cd669630e0fc3e0014e24376c68 (patch)
treedceb788eb59c2b94ebddf371fab0075a10b69eaa /Project1/Contacts.h
parentgetters and setters created (diff)
downloadarchived-homework-7-connormcdowell275-5d43b761af021cd669630e0fc3e0014e24376c68.tar.xz
archived-homework-7-connormcdowell275-5d43b761af021cd669630e0fc3e0014e24376c68.zip
testing. will finish later in the week
Diffstat (limited to 'Project1/Contacts.h')
-rw-r--r--Project1/Contacts.h6
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];