Hi all,
after googling a bit, i found out, that ignore after getline is not necessary, however, i had the following code:
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. WCode:cout << "Enter your name: "; getline(cin, name); // cin.ignore(); cout << "Enter your age: "; cin >> age;
WHat happens there exactly? why is execution is stopped there, like it's waiting for an ENTER?
thanks in advance