Originally Posted by Colin Mac
The newline character is in the buffer from hitting the the enter key.
cout << "Enter the pizza diameter: ";
cin >> ptr->diameter;
cout << "Enter the pizza weight: ";
cin >> ptr->weight; // why doesn't this cin get autofilled by the newline char after inputting the value above? (ptr->diameter)?
cout << "Enter the pizza company name: ";
Right, i get that. But if this is the case, how come the second 'cin >>' isn't auto filled by the newline char created by the first cin?