diff options
| author | Connor McDowell <[email protected]> | 2024-02-22 18:07:34 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-22 18:07:34 -0800 |
| commit | 1a821c0db8c6f96b484fe73241da7230faef608d (patch) | |
| tree | 3ec084201170249a9ce4304dc7deb89afefd5694 /Project1/contact.h | |
| parent | i love following the lecture exactly and getting undefined behavior. (diff) | |
| download | in-class-exercise-13-connormcdowell275-main.tar.xz in-class-exercise-13-connormcdowell275-main.zip | |
Diffstat (limited to 'Project1/contact.h')
| -rw-r--r-- | Project1/contact.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Project1/contact.h b/Project1/contact.h index 7ffec87..ced5d5f 100644 --- a/Project1/contact.h +++ b/Project1/contact.h @@ -6,37 +6,37 @@ class contact public: contact() = default; - char* Get_firstName(); + const char* Get_firstName(); void Set_firstName(const char* firstName); - char* Get_lastName(); + const char* Get_lastName(); void Set_lastName(const char* lastName); - char* Get_streetAddress(); + const char* Get_streetAddress(); void Set_streetAddress(const char* streetAddress); - char* Get_city(); + const char* Get_city(); void Set_city(const char* city); - char* Get_state(); + const char* Get_state(); void Set_state(const char* state); int Get_zip(); void Set_zip(int zip); - char* Get_email(); + const char* Get_email(); void Set_email(const char* email); void print(); private: - char* _firstName{ }; - char* _lastName{ }; - char* _streetAddress{ }; - char* _city{ }; - char* _state{ }; + const char* _firstName{ }; + const char* _lastName{ }; + const char* _streetAddress{ }; + const char* _city{ }; + const char* _state{ }; int _zip; - char* _email{ }; + const char* _email{ }; }; |