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