Guyfawkes
Certified Idiot :)
I have gone braindead trying to sort some data in a struct for the highscores in my game. Here is the struct I am using:
I want to sort the highscores by the amount won (called 'winnings' in the struct) but I cant seem to get it working. I would have pasted the code I am currently using but in a fit of anger I deleted it
Does anyone have a routine that can help me out?
Code:
struct highscores
{
char PlayerName[18];
double winnings;
double highestoffer;
double boxvalue;
};
struct highscores HighscoresUS[11];
struct highscores HighscoresUK[11];
I want to sort the highscores by the amount won (called 'winnings' in the struct) but I cant seem to get it working. I would have pasted the code I am currently using but in a fit of anger I deleted it
Does anyone have a routine that can help me out?