Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct HighscoreEntry;
- class HighscoreTable;
- class HighscoreTable {
- public:
- HighscoreEntry *scores[5];
- HighscoreTable();
- ~HighscoreTable();
- void report();
- void reportRow(int rank);
- const char *getRankStr(int rank);
- void insert(int score, const char *name);
- int getLowest();
- void sort();
- void swap(int a, int b);
- };
- struct HighscoreEntry {
- int score;
- char name[4];
- };
Add Comment
Please, Sign In to add comment