invalid operands of types"const char[3]" and "int

2025-05-16 05:50:00
推荐回答(2个)
回答1:

invalid -- 非法的; operands -- 操作数;
of types "const char[3]" -- 这种类型 的 字符常量。
即不允许这种类型的字符常量定义方式。
scanf 里的输入格式 要用 ASCII 字符。(半角)

回答2:

你的操作数类型不正确