Hi all,

after googling a bit, i found out, that ignore after getline is not necessary, however, i had the following code:
Code:
cout << "Enter your name: ";
getline(cin, name);
// cin.ignore();
cout << "Enter your age: ";
cin >> age;
if i keep the "cin.ignore(), and after entering a name and pressing ENTER, i don't get the "Enter your age" message until i press ENTER again. W
WHat happens there exactly? why is execution is stopped there, like it's waiting for an ENTER?

thanks in advance