I need some help in code,
If u are say, making a game, right, and someone gets a high score (saved as ‘score’); and it is in 2nd place out of 3, how can you shift down the other scores. I am using arrays of records to store name and score
person[count].scr (for score);’
im saving the files in high.txt
what im doing is reading the values from file, when ‘score>person[count].scr then begin’
and I don’t know how to make the scores below that one shift down and in turn, the score 3 will be deleted.
So if the score is 1st then ‘
and person.scr := and person.scr;
e.t.c e.t.c …..
is there an easier way that incorporates counts and so on…
0 · ·