From 1f030ff2fb456846e1f56bd744cd3dd56fe1d476 Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 22 Feb 2024 18:47:36 -0800 Subject: doing overload operator --- Project1/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Project1/main.cpp') 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("connormcdowell275@gmail.com"); + newContact = newContact; + newContact.print(); return 0; -- cgit v1.2.3