am newb in c++ trying to write simple c++ program that a computer, try to guess a number i have chosen by it producing rand number and me telling me whether it is to low, high, or right and using do while loops we are suppose to produce it
now my trouble is, in working with the loop that tells the computer its guess is to low,
once i have told it is lower then that guess, it should pick a lower number
but i cannot figure out how to do that check out my code (attachment) if i tell it is to low, then i want next guess to be lower but it is not the case
i figure that my problem is that i cannot set the new guess to be in the new range, which should be from the lower limit to minus 1 of the last guess