Thread
:
getline()'s and loops
View Single Post
Mar 15th, 2008, 10:17 PM
#
2
Ooble
I eat cake for breakfast.
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power:
9
Re: getline()'s and loops
I'm guessing there's still a newline in the buffer, so
getline
is picking it up each time it loops through. You need to read it and discard it.
(
Toggle Plain Text
)
getline(cin, eng); cin.get();
getline(cin, eng); cin.get();
__________________
Me
::
You
::
Them
Ooble
View Public Profile
Visit Ooble's homepage!
Find More Posts by Ooble