 |
c++ - getline() not working second time in a while loop ...
2011年12月31日 - cin >> yes;. Right there, the user enters a letter, let's say 'y'. Then hits enter. This stores 2 characters in the input buffer, 'y' and '\n'. The 'y' gets stored in ...
stackoverflow.com |
 |