Computer Science Canada Highscore List |
Author: | The9thPawn [ Wed Jan 21, 2009 7:30 pm ] | ||||
Post subject: | Highscore List | ||||
I'm working on a trivia game for school, and all I have left to do is make the highscore list, I need help making it so that scores will be ranked in order from smallest to largest though, any help would be appreciated. here is a shortened version of my program:
______________ that's it, once again any help would be appreciated!! ![]() Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | DemonWasp [ Thu Jan 22, 2009 9:35 am ] |
Post subject: | RE:Highscore List |
You need to sort your list of high scores. There are dozens of ways of sorting, with varying efficiencies. One of the easiest to code, is called Bubble Sort (http://en.wikipedia.org/wiki/Bubble_sort); it's slower than most other sorts, but since your list is so small, slowness isn't a problem. |
Author: | zero-impact [ Sat Feb 07, 2009 12:30 pm ] |
Post subject: | RE:Highscore List |
This should help. |