I'm getting a warning code C682 and im newer to programming so I'm not sure exactly what is wrong.
bool isOperator(char ch)
{
if (ch == '(' or ')' or '*' or '-' or '+')
{
return true;
}
else
return false;
}
I want it to return true if the char is one of those and false if it's something else.