++b 语句如下:if(++b==8) { b=0; direction=!direction; }

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/30 11:27:16

++b 语句如下:if(++b==8) { b=0; direction=!direction; }

就是
如果b是7的话
++b之后就是8咯
if就成立
b就被赋值0,然后direction就 = !direction
这个应该是一个循环