From c853f3c48a225036f27056287fc25d85e8b837df Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 22 Feb 2024 19:01:06 -0800 Subject: working with moves --- Project1/main.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Project1/main.cpp') 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("connormcdowell275@gmail.com"); - 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("SoupWohonkey@soup.soup"); newContact.print(); + anotherContact = newContact; + + contact copyContact(anotherContact); + + copyContact.print(); + return 0; } \ No newline at end of file -- cgit v1.2.3