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()
755k questions
754k answers
5 comments
53.3k users