Original Post
Quick question: when trying to ignore all charicters aside from the first entered in ex: cin >> "y or n"; user enters "yhuo...." I just want the y and I need everything else "flushed" What is happening is: cin >> "y or n"; user enters "yhuo...." cin >> "h or r"; 'h' from the last entry is being stored and used for this question. By adding this line after a cin >> choice; cin.ignore(256,' '); All inputs are ignored until a whitespace is entered (cplusplus.com) tutorial How can I apply this concept to this circumstance?