-
Notifications
You must be signed in to change notification settings - Fork 1
/
user.hpp
49 lines (39 loc) · 1 KB
/
user.hpp
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
#ifndef _USER_HPP_
#define _USER_HPP_
#include <string>
using namespace std;
class User {
private:
int id;
string username;
string password;
bool is_admin;
int balance;
string phone;
string address;
int user_fd;
bool signed_in;
public:
User(int id, string username, string password, bool is_admin, int balance, string phone, string address);
User(int id, string username, string password, bool is_admin);
User(int id, string username);
void set_password (string _password);
void set_balance (int _balance);
void set_phone (string _phone);
void set_address (string _address);
int get_id();
string get_username();
string get_password();
bool is__admin();
int get_balance();
string get_phone();
string get_address();
int get_user_fd();
bool is_signed_in();
void show_info();
string get_info();
string get_full_info();
void sign_in(int _user_fd);
void sign_out();
};
#endif