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