|
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
|
|
More C++ Source Codes By otoom
|
|
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?
|
|
 |
Ant (17) United Kingdom, West Midlands |
|
otoom has 8 fans
become a fan |
|
 |
|
 |
|