-
Notifications
You must be signed in to change notification settings - Fork 2
/
Person.cpp
132 lines (107 loc) · 1.65 KB
/
Person.cpp
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* Person.cpp
*
* Created on: Feb 1, 2014
* Author: mac2nd
*/
#include "Person.h"
using namespace std;
Person::Person() {
setPerson("name", "birthday", 'G', "phone", "address", "email", "user");
accountNumber = -1;
password = "pass";
}
Person::~Person() {
// TODO Auto-generated destructor stub
}
void Person::setName(string n)
{
name = n;
}
string Person::getName()
{
return name;
}
void Person::setBirthday(string b)
{
birthday = b;
}
string Person::getBirthday()
{
return birthday;
}
void Person::setGender(char g)
{
gender = g;
}
char Person::getGender()
{
return gender;
}
void Person::setPhoneNumber(string p)
{
phoneNumber = p;
}
string Person::getPhoneNumber()
{
return phoneNumber;
}
void Person::setAddress(string a)
{
address = a;
}
string Person::getAddress()
{
return address;
}
void Person::setEmail(string e)
{
email = e;
}
string Person::getEmail()
{
return email;
}
string Person::getUserName()
{
return userName;
}
void Person::setUserName(string un)
{
userName = un;
}
void Person::setPerson(string n, string b, char g, string p, string a, string e, string un)
{
name = n;
birthday = b;
gender = g;
phoneNumber = p;
address = a;
email = e;
userName = un;
}
void Person::displayPersonalInformation()
{
/*string n;
n=Person.getName();
cout<<n;
*/
cout<<name<<endl;
cout<<birthday<<endl;
cout<<gender<<endl;
cout<<phoneNumber<<endl;
cout<<address<<endl;
cout<<email<<endl;
}
void Person::setAccountNumber(int n){
accountNumber = n;
}
int Person::getAccountNumber(){
return accountNumber;
}
void Person::setPassword(string s){
password = s;
}
string Person::getPassword(){
return password;
}