I was doing pretty fun exercise but I came across a problem when a task asked me to make computer guess in 7 or fewer times my number. I believe I need to add something in the if statements. 19th and 24th lines. What I'm thinking if the number is too high he (the computer) would stop guessing any numbers that are higher than the number he guessed previously. PLEASE don't give me the code but give me hints.
If you are going to use the C library for random numbers as the computer's choices you should seed the random number generator by calling srand() with the current computer time up at the beginning of main().
srand(time(nullptr)); // you need to include <ctime> for time()