![]() |
|
#1
|
|||
|
|||
Possible Use of an Array????I titled the Thread as, "Possible Use of an Array" becasue, below as you read through my problem, I think that an array will probably be the best way to complete my problem.
Below is what I have of the code so far, basically a program that simulates the game of craps. The "DIFFICULT" part for me is trying to incoporate the following into the program: - I would like to modify the play to play 1000 games of crap, and keep a track of the statistics in the following fashion: - How to display the games won on the 1st roll, 2nd roll, ... 20th roll and after the 20th roll? - How display the games that are lost on the 1st, 2nd, roll, ... 20th roll, and after the 20th roll? - Displaying the chances of winning at craps? - How to find my average length of game in the craps program? - How to display the chances of winning if they improve with the length of the game? Help anyone??? I am open to any suggestions at this point. :-? More Help the Better I always say. CPP / C++ / C Code:
|
|
#2
|
||||
|
||||
|
Yes, you can use arrays to store all that data. In other news, I thought your forum signature was funny when I first read it. You declare yourself as "THE FUTURE OF PROGRAMING," but you spelled "programming" wrong. Yes, that's right... I can debug your ego.
__________________
-Aaron |
|
#3
|
|||
|
|||
|
Quote:
:-) Thanks Man, |
|
#4
|
||||
|
||||
|
So do you have any questions? You seem to have a lot of stuff to do with that program.
__________________
-Aaron |
|
#5
|
|||
|
|||
|
Quote:
Yes, I do have to preform many things to modify this code, and knowing that arrays is the way, the question is how? I don't even know where to begin how to set up an array in this program to get this statistical data. Any ideas???? Nexa |
|
#6
|
||||
|
||||
|
Code:
__________________
-Aaron |
|
#7
|
|||
|
|||
|
Quote:
Cool, I'll see what type of code I can conjure up with your supposed algorithim. Thanks, Nexa |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| more array help (simulation project..) | dilmv | C++ Forum | 6 | 17-Oct-2004 08:51 |
| Speed up C++ code about 3d array! | Truong Son | C++ Forum | 0 | 16-Mar-2004 22:52 |
| c: array comparison | jack | C Programming Language | 7 | 26-Jan-2004 12:21 |
| Extra null element in an array | samtediou | MySQL / PHP Forum | 2 | 11-Dec-2003 12:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The