Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Highscore Ranking
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BigBear




PostPosted: Fri Feb 08, 2008 7:45 pm   Post subject: Highscore Ranking

I have a highscore system in my game that writes to a text file. Then there is a procedure to view the contents of this text file so the highscore system works but I would like to know how to Rank the highscores like the person who gets score of 100 should be ahead of the person who gets 10. But currently it just goes in order so if you get score of 10 then 100 the entry with score of 10 appears on top.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Feb 08, 2008 8:25 pm   Post subject: RE:Highscore Ranking

the technical term for this is sort
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
BigBear




PostPosted: Fri Feb 08, 2008 8:29 pm   Post subject: Re: Highscore Ranking

Ok yes I would like to sort my highscores from the way I am doing it how do you suggest I go about doing it.
Jestar




PostPosted: Fri Feb 08, 2008 8:43 pm   Post subject: RE:Highscore Ranking

go to the tutorial section and look up sorting, there are lots of different ways to do it.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: