[Solved] Why code is jumping while inputting strings?


use cin.ignore(); before using getline() to empty the buffer.Read more here: When and why do I need to use cin.ignore() in C++?

1

solved Why code is jumping while inputting strings?