-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager.h
28 lines (28 loc) · 934 Bytes
/
manager.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
#pragma once
#include"identity.h"
#include"student.h"
#include"teacher.h"
class Manager :public Identity {
public:
void operMenu();
void addAccount();
void viewAccount();
void viewComputerRoom();
void clearAppointment();
void logOut();
void writeInStudentFile(Student student);
void writeInTeacherFile(Teacher teacher);
//void writeInFile(Identity& identity);
void readStudentFile(vector<Student>& stuVector);//½«ÎļþÖеÄÐÅÏ¢¶ÁÈëvectorÖÐ
void readTeacherFile(vector<Teacher>& teaVector);
void readManagerFile(vector<Manager>& manVector);
bool IsStudentIdExist(vector<Student> stuV,int student_id,int &i);
bool IsTeacherIdExist(vector<Teacher> teaV,int teacher_id,int &i);
bool IsManagerNameExist(vector<Manager> manV, string manager_name,int &i);
void managerLogIn();
void studentLogIn();
void teacherLogIn();
vector<Student> stuVector;
vector<Teacher> TeaVector;
int m_manager_id;
};