I\'m creating a simple console application in C++ that gets string and char inputs from the user. To make things simple, I would like to use the string and
ignore() does not skip a line, it skips a character. Could you send example code and elaborate on the need for cin.ignore()?
ignore()
cin.ignore()