-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadministrator.h
More file actions
30 lines (30 loc) · 813 Bytes
/
administrator.h
File metadata and controls
30 lines (30 loc) · 813 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
#pragma once
#ifndef ADMINISTRATOR
#define ADMINISTRATOR
#include<string>
using namespace std;
class administrator {
char name[11];
char password[21];
public:
administrator() {
sprintf(name, "admin");
sprintf(password, "123456");
}
bool log_in(char name[11], char password[21]);
string write_check_all_goods();
void check_all_goods();
string write_check_all_orders();
void check_all_orders();
string write_check_all_users();
void check_all_users();
string write_remove_goods(char ID[5]);
void remove_goods(const char ID[5]);
string write_block_users(char ID[5]);
void block_users(const char ID[5]);
string write_search_for_goods(char name[11]);
void search_for_goods(const char name[11]);
void read_commands_administrator(const string& strings);
void administrator_interface();
};
#endif