[ad_1]
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
[ad_2]
solved Why code is jumping while inputting strings?
[ad_1]
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
[ad_2]
solved Why code is jumping while inputting strings?