|
|
char
?cin >> option
will only get the first character inputted. So "11" will fall in case '1'
, "20" will fall under case '2'
, etc.option
as an std::string. This way, cin >> option
will catch the entire input . And then change the cases to "1", "2", etc.