+ 1

All day no luck

I have literally been trying this all day. Trying to get the computer to guess my number. What is wrong with it? https://code.sololearn.com/c11fFFh8t90o/#cpp

5th Jun 2017, 7:03 PM
Bryan
13 odpowiedzi
+ 8
i am a software engineering student
5th Jun 2017, 8:46 PM
Burey
Burey - avatar
+ 8
that's a bold choice i wish you good luck whatever you may choose :)
5th Jun 2017, 9:05 PM
Burey
Burey - avatar
+ 5
great also added few comments and a representation of the upper and lower boundries at each iteration
5th Jun 2017, 8:11 PM
Burey
Burey - avatar
+ 5
do what exactly?
5th Jun 2017, 8:38 PM
Burey
Burey - avatar
+ 4
re-wrote it a little bit had some wrong placement of } but sometimes it won't be able to guess as it takes too long for execution and it won't find the correct number https://code.sololearn.com/ceT0GIFd33Pe/?ref=app
5th Jun 2017, 7:31 PM
Burey
Burey - avatar
+ 4
might need tonchange order of some lines in there
5th Jun 2017, 11:03 PM
Burey
Burey - avatar
+ 2
yeah I'm thinking about changing careers but I figured I'd learn coding then maybe go to school later
5th Jun 2017, 8:48 PM
Bryan
+ 1
thanks for your help. this is exactly what I needed so I can compare to see what I had wrong
5th Jun 2017, 8:00 PM
Bryan
0
do you so this for a living?
5th Jun 2017, 8:36 PM
Bryan
0
do you do not so lol.
5th Jun 2017, 8:37 PM
Bryan
0
coding
5th Jun 2017, 8:39 PM
Bryan
0
your version is not quite right though. it doesn't get wording right. if the number is 10 the computer will guess 55 and then say it guessed too low
5th Jun 2017, 10:32 PM
Bryan
0
yeah I'm just gonna start from scratch
5th Jun 2017, 11:38 PM
Bryan