|
-
May 1st, 2007, 11:13 AM
#1
Loop To Create Variables
How would I go about creating a loop that creates new variables based on how many I wish?
For example...
User declares that there is 3 categories in a Jeopardy game.
Each category starts with 0 questions, which is displayed beside each categorie.
Everytime the user adds a new question to a categorie, the number is increased by 1
So on and so forth...
Before:
1. Stuff (0)
2. More Stuff (0)
3. Stuff with Stuff (0)
After Adding One question:
1. Stuff (1)
2. More Stuff (0)
3. Stuff with Stuff (0)
Im currently programming a Jeopardy type game and would like this addition to it, I know I have to create seperate variables for each categorie so each of the numbers are different...but I have no idea how to go about doing this. Any suggestions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|