Are you saying to go and do this with a string temp variable?
Code:
void clearBuffer(void)
{
string temp;
getline(cin, temp);
}
void enterProdInfo(void)
{
cout << "Please enter the product description (max 18 characters): ";
getline(cin, ProductDesc);
clearBuffer();
//bunch more inputs in here but deleted since they serve no purpose for the moment
}
I did it this way just to test and if doesnt show any input from the ProductDesc string...just blank like it was using the input from temp.
Or is it that I sub in ProductDesc for temp?
...Dan