![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#15 |
|
Expert Programmer
Join Date: Jun 2005
Posts: 825
Rep Power: 4
![]() |
Its probably easiest to do it in main. You already have access to the rounds count and the last result. You would just need to have variables for the minimum guesses, maximum guesses and total guesses. Then just divide the total guesses by the number of rounds for the average.
If you want to do it in the correct() function, then you will have to store the data in global variables, or pass them in through the playOneRound function. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C# corruption!!! | Kilo | C++ | 32 | May 21st, 2006 8:44 PM |
| Array issues :( | Alo Tsum | Java | 10 | Nov 26th, 2005 5:45 PM |
| A standards question, optional inputs into Methods | Arla | C# | 4 | Apr 27th, 2005 10:38 PM |
| replace space with ' * ' | TecBrain | C++ | 15 | Apr 13th, 2005 12:32 PM |
| function | solomon_13000 | Java | 6 | Apr 2nd, 2005 11:42 PM |