i have this code:
string str;
while (getline(cin, str, '\n')) {
....
and i enter something like, say, "Hello everybody<enter>" (where <enter> is the return key). Getline refuses to return until I press enter again. Why is this so? Is there any way around this?