Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~223 People Reached
Favorite Forums
Favorite Tags
c++ x 6
cin x 6
Member Avatar for kjcjk

When I run my program it ignores the cin and goes into an infinite loop. It acts as though the cin.ignore() isn't working. [CODE] int getInput(int tries){ int numGuess = 0; cin >> numGuess; cin.ignore(); validate(numGuess, tries); return 0; } int validate (int input, int tries){ if (input <1 || …

Member Avatar for WaltP
0
223