highscore help
Author |
Message |
kirby_col7
|
Posted: Fri Jan 11, 2008 10:43 pm Post subject: highscore help |
|
|
what are some ideas for making a highscore datafile and how could i get it to sort, i was thinking arrays with a sort in it any other ideas? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Fri Jan 11, 2008 11:46 pm Post subject: RE:highscore help |
|
|
consider Insertion Sort -- you already know that your highscore datafile is sorted, so when adding a new highscore, you just need to find the first line where the recorded score is lower. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
|
|