Can someone please assist with an input of a string error.
Here is my code
cout<< "Please enter the following information: " << endl;
cout << "CustomerName"<<endl;
cin >> CustomerName;
cout << "CustomerNumber"<<endl;
cin >> CustomerNumber;
If I input Mrs Smith with a space, it doesn't not prompt me to enter a CustomerNumber, it skips the code. But if I input Mrs.Smith with no spaces it prompt me for the customer number.
I have change CustomerName from a string to a char CustomerName but with no luck.
Any assistance would be appreciated.