Coder Profile - Show off your skills, get a coder profile.
 
 
 
Please login to rate source codes.

Click here to register a free account with us.
Language Posted Comments
C++ 1.78 Year Ago 5
Rating Downloadable Plain Text
7.00 - - - 1,663 Chrs
Total Ratings Views Screenshot
1 616 - - -

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.
 
Uranium-239     Posted 1.58 Year Ago
 
 
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.
 
otoom     Posted 1.76 Year Ago
 
 
Thanks.
 
mikeMarek     Posted 1.76 Year Ago
 
 
Good job for a nice starting program
 
otoom     Posted 1.77 Year Ago
 
 
Not sure, i guess it's because i needed to use it in GuessFunc and main so i did
it that way.
 
smokey991     Posted 1.77 Year Ago
 
 
Why are you using finished as a global?
Page 1 of 1
Ant (17)
United Kingdom, West Midlands
otoom has 8 fans
become a fan
� Applications
Articles Articles (9)
Source Codes Source Codes (18)
Code Pin Board Code Pin Board (2)
� About Me
About Me About Me
Portfolio Portfolio (2)
Friends Friends (159)
Interview Interview
� Misc
Overview Overview
Send A Friend Invite
Send Message Send A Message
RSS Whole Profile Feed
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
2.53 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright � 2007 - 2011, Scott Thompson, All Rights Reserved