27 lines
411 B
C++
27 lines
411 B
C++
#ifndef GUARD_SCORESMANAGER_H
|
|
#define GUARD_SCORESMANAGER_H
|
|
|
|
#include <utility>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
struct Score{
|
|
string name;
|
|
unsigned points;
|
|
Score() = default;
|
|
Score(const string& name, unsigned points);
|
|
};
|
|
|
|
class ScoresManager {
|
|
public:
|
|
vector<Score> scores;
|
|
void inputScore(const string& name, unsigned points);
|
|
void readFile();
|
|
void writeFile();
|
|
};
|
|
|
|
|
|
#endif
|