-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspeechManager.hpp
70 lines (43 loc) · 1.05 KB
/
speechManager.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// speechManager.hpp
// SpeechCompetitionSystemBasedOnSTL
//
// Created by Yutong Xie on 11/4/22.
//
#ifndef speechManager_hpp
#define speechManager_hpp
#include <iostream>
using namespace std;
#include <vector>
#include "speaker.hpp"
#include <map>
class SpeechManager{
public:
SpeechManager();
void Show_Menu();
void Exit_System();
// initialize
void InitSpeech();
void CreateSpeaker();
void Start_Speech();
void SpeechDraw();
void SpeechContest();
void ShowScore();
void SaveRecord();
void LoadRecord();
void Show_Record();
void Clear_Record();
~SpeechManager();
//speaker id in first round
vector<int>v1;
//speaker id in second round
vector<int>v2;
//speaker id of three winners
vector<int>vw;
//pair speaker id with Speaker
map<int, Speaker>mSpeaker;
int round;
bool fileIsEmpty;
map<int, vector<string>>mRecord;
};
#endif /* speechManager_hpp */