-
Notifications
You must be signed in to change notification settings - Fork 0
/
speechManager.h
79 lines (58 loc) · 1.22 KB
/
speechManager.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
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
70
71
72
73
74
75
76
77
78
79
#pragma once
#include <iostream>
using namespace std;
#include <vector>
#include <map>
#include "speaker.h"
#include <algorithm>
#include <deque>
#include <functional>
#include <numeric>
#include <string>
#include <fstream>
class SpeechManager
{
public:
// constructor
SpeechManager();
// menu
void show_Menu();
// exit the system
void exitSystem();
// destructor
~SpeechManager();
// initialize container and properties
void initSpeech();
// create 12 speakers
void createSpeaker();
//start the contest, this function controls the contest flow.
void startSpeech();
// start drawing lots
void speechDraw();
// contest
void speechContest();
// show result
void showScore();
// save result
void saveRecord();
// load result
void loadRecord();
// show pass results
void showRecord();
// clear results
void clearRecord();
// check if the file is empty
bool fileIsEmpty;
// save past records
map<int, vector<string>>m_Record;
// save the first round results
vector<int>v1;
// the number of the winner of the first round.
vector<int>v2;
// the number of the top three winners
vector<int>vVictory;
// save numbers and players
map<int, Speaker>m_Speaker;
// number of rounds
int m_Index;
};