You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (op == "+" || op == "-" || op == ">=" || op == "<=" || op == "==" || op == ">" || op == "<" || op == "==" || op == "&&" || op == "!" || op == "||") return1;
287
-
if (op == "*" || op == "/") return2;
287
+
if (op == "*" || op == "/" || op == "%") return2;
288
288
return0;
289
289
}
290
290
291
291
// Function to check if a character is an operator
292
292
boolTree::isOperator(std::string c) {
293
-
return c == "+" || c == "-" || c == "*" || c == "/" || c == "=";
293
+
return c == "+" || c == "-" || c == "*" || c == "/" || c == "=" || c == "%";
0 commit comments