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()
1.4m articles
1.4m replys
5 comments
57.0k users