Try this after the inputs happen:
if(!cin)
{
cin.clear();
cin.ignore();
continue;
}
Type: Posts; User: manasij7479
Try this after the inputs happen:
if(!cin)
{
cin.clear();
cin.ignore();
continue;
}
Post your current code.
Change all the double quotes to single.
And the arg to a char instead of a string (or switch arg[0]) .