Solved

creating a high score list

Posted on 2001-09-18
6
248 Views
Last Modified: 2010-04-02
I want to create a high score list that remembers my high scores how would i declare this variable?
0
Comment
Question by:scotts28
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 6491560
Is this homework?
0
 

Author Comment

by:scotts28
ID: 6491562
No im just playing around trying to create a simple game.
0
 
LVL 30

Accepted Solution

by:
Axter earned 20 total points
ID: 6491574
Are you asking how to save the high score to a file?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:Axter
ID: 6491576
Or are you asking how to create an array of highscores?
0
 

Author Comment

by:scotts28
ID: 6491578
you just answered it i was not thinking
0
 
LVL 30

Expert Comment

by:Axter
ID: 6491582
You can create an array several ways.

int HighScores[10]; //Ten highscores
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
object oriented programming on screen browser tutorial lesson 2 94
c++ syntax question 9 66
Safe conversion? 4 86
designing in object programming 12 131
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question