View Single Post
Old Mar 15th, 2008, 10:17 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.

getline(cin, eng);
cin.get();
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote