Relevant code is as follows:
string output;
char letter, number, symbol;
cout << "Input a letter, number, and a symbol separated by a space: ";
getline(cin, output);
istringstream(output) >> letter >> number >> symbol;
However, if I type in a multiple digit number, it only saves the first one, and then whatever is assigned to symbol is.. not correct.
What am I doing wrong? How can I make it so it only stops reading when it hits a blank space?