I need to know how to make my cin statement not appear to \'remove\' itself if you input the wrong type. The code is here:
int mathOperator()
{
using names
Unless you're quite certain about the input being in the proper format, you rarely want to use operator>> directly from the input stream.
It's usually easier to read a line with std::getline, put that into a std::istringstream, and read from there. If that fails, you print/log an error message, throw away the remainder of the line and (possibly) go on to the next line.