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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 00:51:37
++b 语句如下:if(++b==8) { b=0; direction=!direction; }

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

++b 语句如下:if(++b==8) { b=0; direction=!direction; }
就是
如果b是7的话
++b之后就是8咯
if就成立
b就被赋值0,然后direction就 = !direction
这个应该是一个循环