27 lines
422 B
C++
27 lines
422 B
C++
#ifndef GUARD_SCORESMANAGER_H
|
|
#define GUARD_SCORESMANAGER_H
|
|
|
|
#include<utility>
|
|
#include<vector>
|
|
#include<string>
|
|
#include "utils.h"
|
|
|
|
using namespace std;
|
|
|
|
struct ScoreLink{
|
|
string name;
|
|
unsigned score;
|
|
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
|