-
Notifications
You must be signed in to change notification settings - Fork 2
/
structures.cpp
135 lines (104 loc) · 1.78 KB
/
structures.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
133
134
135
#include <string>
#include <iostream>
#include "structures.h"
using namespace std;
//------------------------------------------------------
// User member functions
//------------------------------------------------------
user::user(int a, string b, string c, string d, string e, char f)
{
setUser(a, b, c, d, e, f);
}
user::user()
{
ID = 0;
}
void user::setUser(int a, string b, string c, string d, string e, char f)
{
ID = a;
password = b;
firstName = c;
lastName = d;
classList = e;
group = f;
}
int user::get_ID()
{
return ID;
}
string user::get_firstName()
{
return firstName;
}
string user::get_lastName()
{
return lastName;
}
string user::get_password()
{
return password;
}
char user::get_group()
{
return group;
}
string user::get_classList()
{
return classList;
}
void user::set_password(string newPass)
{
password = newPass;
}
void user::set_classList(string a)
{
classList = a;
}
//------------------------------------------------------
// Course member functions
//------------------------------------------------------
course::course(string a, string b)
{
setCourse(a, b);
}
course::course(string a)
{
title = a;
}
void course::setCourse(string a, string b)
{
title = a;
attendance = b;
}
string course::get_title()
{
return title;
}
string course::get_attendance()
{
return attendance;
}
void course::setAttendance(string a)
{
attendance = a;
}
//------------------------------------------------------
// Vacany member functions
//------------------------------------------------------
vacancy::vacancy(string a, string b)
{
setVacancy(a, b);
}
void vacancy::setVacancy(string a, string b)
{
position = a;
discription = b;
}
string vacancy::get_position()
{
return position;
}
string vacancy::get_description()
{
return discription;
}