-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpersons.h
93 lines (89 loc) · 1.51 KB
/
persons.h
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
#ifndef PERSONS_H
#define PERSONS_H
#include <iostream>
using namespace std;
#include <string>
class persons{
private:
string name;
string password;
string goal;
int height;
int weight;
int age;
int bench;
int squat;
int deadlift;
public:
persons(){
name = "unknown";
password = "unknown";
goal = "unknown";
height = 0;
weight = 0;
age = 0;
bench = 0;
squat = 0;
deadlift = 0;
}
persons(string n, string p, string g){
name = n;
password = p;
goal = g;
}
void setName(string n){
name = n;
}
string getName(){
return name;
}
void setPassword(string p){
password = p;
}
string getPassword(){
return password;
}
void setGoal(string g){
goal = g;
}
string getGoal(){
return goal;
}
void setSquat(int s){
squat = s;
}
int getSquat(){
return squat;
}
void setBench(int b){
bench = b;
}
int getBench(){
return bench;
}
void setDeadlift(int d){
deadlift = d;
}
int getDeadlift(){
return deadlift;
}
void setHeight(int h){
height = h;
}
int getHeight(){
return height;
}
void setWeight(int w){
weight = w;
}
int getWeight(){
return weight;
}
void setAge(int a){
age = a;
}
int getAge(){
return age;
}
};
#endif