blob: 90791b78008028646bcb6966745146c2278d33e6 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef CONTACT_HELPER
#define CONTACT_HELPER
// NOTE FOR ASSIGNMENT:
// USE COMPLEX CONTACT()
// contact(const char* name/address/etc etc)
// with:
// contact::contact(same as above){
// _name = name
// and so on for each item.
// then when creating the list each input is automatically inserted into right spots.
class contact
{
public:
contact() = default;
contact(const contact& copy);
contact& operator=(const contact& rhs);
contact(contact&& move);
contact& operator=(contact&& rhs);
const char* Get_firstName();
void Set_firstName(const char* firstName);
const char* Get_lastName();
void Set_lastName(const char* lastName);
const char* Get_streetAddress();
void Set_streetAddress(const char* streetAddress);
const char* Get_city();
void Set_city(const char* city);
const char* Get_state();
void Set_state(const char* state);
int Get_zip();
void Set_zip(int zip);
const char* Get_email();
void Set_email(const char* email);
void print();
private:
const char* _firstName{ };
const char* _lastName{ };
const char* _streetAddress{ };
const char* _city{ };
const char* _state{ };
int _zip;
const char* _email{ };
};
#endif CONTACT_HELPER
|