|
General Details
|
|
C++
|
|
Posted 194 Days Ago
|
|
185 Views
|
|
Received 1 Rating
|
|
Guessing Game
Description
Guess the number within your 3 attempts ;)
Bug: Once you guess it, it still asks for another guess, will be fixed.
Technical
C++
Source Code
Comments
| Please login to post comments. |
|
|
Nice start, the layout of your code has room for improvment though.
You declare 'finished' (boolean) with global scope as a work around for using functions properly. GuessFunc is declared as returning 'int' however, it never does. I suggest you declare GuessFunc as returning 'bool', and use its return value as opposed to hacking around that with global variables.
|
|
|
Good job for a nice starting program
|
|
|
Not sure, i guess it's because i needed to use it in GuessFunc and main so i did it that way.
|
|
|
Why are you using finished as a global?
|
More "C++" Source Codes By This Author
Recently Posted "C++" Source Codes
Recently Rated "C++" Source Codes
|