diff options
Diffstat (limited to 'InClassExercise14/InClassExercise14/main.cpp')
| -rw-r--r-- | InClassExercise14/InClassExercise14/main.cpp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/InClassExercise14/InClassExercise14/main.cpp b/InClassExercise14/InClassExercise14/main.cpp index 3dc46a1..f75ba07 100644 --- a/InClassExercise14/InClassExercise14/main.cpp +++ b/InClassExercise14/InClassExercise14/main.cpp @@ -9,10 +9,30 @@ int main() { Contact newContact; - + newContact.SetFirstName("Reece"); + newContact.SetLastName("Warner"); + newContact.SetCity("Wilsonville"); + newContact.SetEmail("[email protected]"); + newContact.SetStreetAddress("28685SWASHLANDLOOP"); + newContact.SetZip(97070); + newContact.SetState("Oregon"); + newContact.Print(); + Contact anotherContact(newContact); + anotherContact.Print(); + + + Contact anotheranotherContact; + anotheranotherContact = newContact; + anotheranotherContact.Print(); + + Contact copyContact(anotherContact); + copyContact.Print(); + + Contact moveContact(anotherContact); + moveContact.Print(); return 0; }
\ No newline at end of file |