What does cin.ignore(numeric_limits<streamsize>::max(), ' ') mean in C++?
cin.ignore(numeric_limits<streamsize>::max(), ' ')
Does it actually ignore the last input from the user?
This line ignores the rest of the current line, up to ' ' or EOF - whichever comes first:
' '
EOF
cin
numeric_limits<streamsize>::max()
2.1m questions
2.1m answers
60 comments
57.0k users