aboutsummaryrefslogtreecommitdiff
path: root/Project1/main.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-22 19:01:06 -0800
committerConnor McDowell <[email protected]>2024-02-22 19:01:06 -0800
commitc853f3c48a225036f27056287fc25d85e8b837df (patch)
tree5ff40149806f29cdaf9c5ba41ff23a2d501b6163 /Project1/main.cpp
parentoverload op completed (diff)
downloadarchived-in-class-exercise-14-connormcdowell275-c853f3c48a225036f27056287fc25d85e8b837df.tar.xz
archived-in-class-exercise-14-connormcdowell275-c853f3c48a225036f27056287fc25d85e8b837df.zip
working with moves
Diffstat (limited to 'Project1/main.cpp')
-rw-r--r--Project1/main.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/Project1/main.cpp b/Project1/main.cpp
index cb0a77b..6e853a5 100644
--- a/Project1/main.cpp
+++ b/Project1/main.cpp
@@ -23,9 +23,23 @@ int main()
newContact.Set_zip(97035);
newContact.Set_email("[email protected]");
- newContact = newContact;
+ contact anotherContact;
+
+ anotherContact.Set_firstName("Soup");
+ anotherContact.Set_lastName("Mchonkey");
+ anotherContact.Set_streetAddress("your mom road");
+ anotherContact.Set_city("Nunya");
+ anotherContact.Set_state("south carolina");
+ anotherContact.Set_zip(696969);
+ anotherContact.Set_email("[email protected]");
newContact.print();
+ anotherContact = newContact;
+
+ contact copyContact(anotherContact);
+
+ copyContact.print();
+
return 0;
} \ No newline at end of file