diff options
| author | Connor McDowell <[email protected]> | 2024-02-22 17:35:24 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-22 17:35:24 -0800 |
| commit | db9eb2fc87140a14fb7fa6e1a198b8478dadafaa (patch) | |
| tree | 6c7ec89f00796bea965c274596378d991356d934 /Project1/contact.cpp | |
| parent | add getters and setters (diff) | |
| download | archived-in-class-exercise-13-connormcdowell275-db9eb2fc87140a14fb7fa6e1a198b8478dadafaa.tar.xz archived-in-class-exercise-13-connormcdowell275-db9eb2fc87140a14fb7fa6e1a198b8478dadafaa.zip | |
working on functions
Diffstat (limited to 'Project1/contact.cpp')
| -rw-r--r-- | Project1/contact.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Project1/contact.cpp b/Project1/contact.cpp index 9625029..7b0e570 100644 --- a/Project1/contact.cpp +++ b/Project1/contact.cpp @@ -7,14 +7,14 @@ using std::endl; -char contact::Set_firstName() +void contact::Set_firstName(char firstName) { - + *_firstName = firstName; } -char contact::Get_firstName() +char* contact::Get_firstName() { - + return _firstName; } void contact::print() |