b4ngo @ 2022-02-09 11:10:04
com不是定义的全局吗,为啥这里if判断正常,else里com变成0了
by yzh_Error404 @ 2022-02-09 11:11:53
if(com=(c[12]-'0'))
把它赋值成0了
by Buried_Dream @ 2022-02-09 11:12:21
你if中是赋值,不是 ==
by b4ngo @ 2022-02-09 11:12:56
@yzh_Error404 多谢大佬,应该用==的,多谢多谢
by newbie_QwQ @ 2022-02-09 11:12:58
@b4ngo com=(c[12]-'0')
?
by b4ngo @ 2022-02-09 11:13:16
@TLE_Automation 嗯嗯多谢多谢
by Buried_Dream @ 2022-02-09 11:13:39
if(com = (c[12] - '0')) 你这个要是成立就是com = 1, 不成立就是 com = 0
应该改成 com == (c[12] ^ 48)
by b4ngo @ 2022-02-09 11:17:27
@TLE_Automation 好的,谢谢大佬
by a2lyaXNhbWUgbWFyaXNh @ 2022-02-09 11:20:58
刚想回复发现已经被说了…………