I am having trouble reading standard input from the user. The user must enter in a floating point number followed by a letter with no spaces between. Ex: 5b, 3c, 6t, etc. I've tried this to no avail...
float num;
char letter;
cout<<"Enter your selection: ";
cin>>num>>letter;
It only works if there is a space between them. Anyone have a workaround to this problem?
Thanks