Question on getline()
Why is it that if I have more than one getline in a code only the first one gets done correctly and the second gets skipped unless I use cin.ignore() at some point between them
Posted Aug 29, 2016, 11:45 PM UTC
27
Why is it that if I have more than one getline in a code only the first one gets done correctly and the second gets skipped unless I use cin.ignore() at some point between them
Posted Aug 29, 2016, 11:45 PM UTC