📜  c 检查 char 是否为运算符 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:34.205000             🧑  作者: Mango

代码示例1
char o = '+';    //Or some other character

if (o == '%' || o == '/' || o == '*' || o == '+' || o == '-') {
    //Do something
    //...
}