aboutsummaryrefslogtreecommitdiff
path: root/Project1/main.cpp
blob: 6e853a55c16c53e13ebb9ff2a5c97b10b6da87be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Name: Connor McDowell
// date: 2/19/24
// class: CST116
// reason: learning classes, in class exercise 13

#include <iostream>
#include "contact.h"

using std::cin;
using std::cout;
using std::endl;


int main()
{
	contact newContact;
	
	newContact.Set_firstName("Connor");
	newContact.Set_lastName("McDowell");
	newContact.Set_streetAddress("6051 Lakeview Blvd");
	newContact.Set_city("Lake Oswego");
	newContact.Set_state("Oregon");
	newContact.Set_zip(97035);
	newContact.Set_email("[email protected]");

	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;
}