Man-machine guessing C++ program