I have a C++ program which needs to take user input. The user input will either be two ints (for example: 1 3) or it will be a char (for example: s).
I know I can get th
Use std::getline to read the input into a string, then use std::istringstream to parse the values out.
std::getline
std::istringstream