diff options
| author | Connor McDowell <[email protected]> | 2024-02-29 16:02:20 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-29 16:02:20 -0800 |
| commit | 903d582231befeccae18be5af3b23ee92235d343 (patch) | |
| tree | 33a5b78025e856d18480df35a90cae6ce4cac88e /Project1/Contacts.h | |
| parent | list of contacts created (diff) | |
| download | homework-7-connormcdowell275-903d582231befeccae18be5af3b23ee92235d343.tar.xz homework-7-connormcdowell275-903d582231befeccae18be5af3b23ee92235d343.zip | |
refactoring add new.
Diffstat (limited to 'Project1/Contacts.h')
| -rw-r--r-- | Project1/Contacts.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Project1/Contacts.h b/Project1/Contacts.h index d485659..db2de53 100644 --- a/Project1/Contacts.h +++ b/Project1/Contacts.h @@ -40,9 +40,17 @@ public: const char* Get_email(); void Set_email(const char* email); + size_t Get_a(); + void Set_a(size_t a); + + size_t Get_id(); + void Set_id(size_t id); + void print(); private: + size_t _a = 0; + // _a functions as delete bool. if a = 1, the slot is overwritten int _id; const char* _firstName{ }; const char* _lastName{ }; |