-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuest.h
More file actions
56 lines (47 loc) · 918 Bytes
/
Guest.h
File metadata and controls
56 lines (47 loc) · 918 Bytes
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
#pragma once
#include "LIB.h"
#include "Exceptions.h"
#include "Admin.h"
class Bio
{
protected:
string _name;
string _surname;
string _last_name;
void set_name(string name);
void set_surname(string surname);
void set_last_name(string last_name);
void fill_data();
};
class Phone
{
protected:
string phone;
void fill_phone();
void set_number_phone(const string& num);
};
class Home_Address
{
protected:
string street;
void set_street(string street);
void fill_address();
};
class Guest : public Home_Address, Phone, Bio {
string login, password;
vector<int> marks;
vector<string> themes;
protected:
str codestr(str& _word);
str uncodestr(str& _word);
void upload_user_data();
public:
bool checkLogin(const str& login);
bool checkPassword(const str& password);
void load_user_data();
void registerGuest();
void loginGuest();
void guestTools();
void doTest();
str getLogin() const;
};