Bracketing search

Hey guys - i just finished finally the http://www.cplusplus.com/forum/articles/12974/

bracketing search problem with all stars (BTW does writing html code here not work anymore? I wanted to make nice pretty links not these giants :()

so Anyway - here is the program http://pastebin.com/sjGjJbBb

i dunno if you guys care or not, but i just wanted to share and see if maybe someone can find some bugs or find out whether people have created better methods to doing this.

Im a little bit happy because this one was kind of hard - it took me a few hours (Over the course of a few days) to figure it out - maybe im just slow :/

Quick rundown - the challenge problem has 2 variations of you guessing what the computer randomly selects, and the computer guessing your number. So thats option 1 and 2 respectively!
nice work dude
Topic archived. No new replies allowed.