High Scores.

I am trying to make a leaderboard type thing in a game I am programming. I want it to be able to take in the player name, score, and date and output them in order with 9 other scores. I don't know where to begin.
Create a Score class, read the stuff from the console and use std::sort on the vector.
Well hello.

You could start of by defining your variables.. and sort out all the input like how you gona record it.. *maybe 3 arrays holding down name score and date should work*

if it's a game as you said.. when game starts name input... after some battles whatever score is modified.. and last when game is over date is added...

in the end display all arrays nicely with for() loop ? as game score board... dunnno this would be simple
Topic archived. No new replies allowed.