I would define a simple structure to hold name and score, then a simple class to hold a number of such structures - probably using one of the STL container classes.
You then need to add methods to check a new score against the set of high scores in the class (so you can aleart the user they have a new high score), to add a new high score & name to the list, and to load and save the list to a file on disk (assuming you want the high scores to be preserved from game to game).
If you need more help, post what you manage yourself and I'm sure someone will give you a few more hints :-)
Thanks for your response.
Can you kindly please post some of the syntax so I can understand it fully?
Because I'm not really good in computers, it's just that our curriculum has this c++ thing. So I have to take this course.