I\'m trying to build the Bulls & Cows game in C++. I\'ve implemented most of the logic. The game runs continuously with the use of an infinite loop and generates a ran
Try out cin.ignore(). It'll help you flush the cin buffer.
cin.ignore()
cin