How to make high scores?

I need an easy way to read the high scores from a game and then check if the current score is greater than any of the top three.
If yes, it occupies a place accordingly
Any ideas?
Cause I really don't know much about files

Try using classes if possible

Thanks :)
Where is your try?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class highScore
   {
       int scor;
       char name[50];
     public:
       void tempStore(int &score);
       void entername(int score)
	  {
	     setcolor(BLUE);
	     bar(130,100,530,380);
	     setcolor(RED);
	     settextstyle(0,0,0);
	     gotoxy(20,12);
	     cout<<"Score : ";
	     cout<<score;
	     gotoxy(20,14);
	     cout<<"Enter your name : ";
	     gets(name);
	   }
       void display(int scor)
	   {
	     char prtsco[100];
	     setcolor(BLUE);
	     bar(100,100,630,470);
	     setcolor(GREEN);
	     settextstyle(0,0,1);
	     outtextxy(100,100,name);
	     sprintf(prtsco,"%d",scor);
	     outtextxy(100,130,prtsco);
	   }
    }P;


This is all i can do.
I just need a function to check the new score, compare it with the top 3 scores and place it accordingly
Topic archived. No new replies allowed.