diff options
| author | Connor McDowell <[email protected]> | 2024-02-22 18:47:36 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-22 18:47:36 -0800 |
| commit | 1f030ff2fb456846e1f56bd744cd3dd56fe1d476 (patch) | |
| tree | 2f43707933a61f17af10aca722f545f0c989dcab /Project1/main.cpp | |
| parent | excersize 13 files added (diff) | |
| download | in-class-exercise-14-connormcdowell275-1f030ff2fb456846e1f56bd744cd3dd56fe1d476.tar.xz in-class-exercise-14-connormcdowell275-1f030ff2fb456846e1f56bd744cd3dd56fe1d476.zip | |
doing overload operator
Diffstat (limited to 'Project1/main.cpp')
| -rw-r--r-- | Project1/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Project1/main.cpp b/Project1/main.cpp index 6d29960..cb0a77b 100644 --- a/Project1/main.cpp +++ b/Project1/main.cpp @@ -14,7 +14,7 @@ using std::endl; int main() { contact newContact; - + newContact.Set_firstName("Connor"); newContact.Set_lastName("McDowell"); newContact.Set_streetAddress("6051 Lakeview Blvd"); @@ -23,6 +23,8 @@ int main() newContact.Set_zip(97035); newContact.Set_email("[email protected]"); + newContact = newContact; + newContact.print(); return 0; |