Guess the number program in C++