uni

University stuff
git clone git://git.christosmarg.xyz/uni-assignments.git
Log | Files | Refs | README | LICENSE

Score.hpp (282B)


      1 #ifndef _SCORE_HPP_
      2 #define _SCORE_HPP_
      3 
      4 #include <fstream>
      5 #include <vector>
      6 
      7 class Score {
      8 private:
      9 	struct HighScore {
     10 		char name[10];
     11 		int score;
     12 	} hiscores[5];
     13 
     14 	std::fstream sf;
     15 	int curscore;
     16 
     17 public:
     18 	Score(const char *scorefile);
     19 	~Score();
     20 };
     21 
     22 #endif /* _SCORE_HPP_ */