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

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 12:39:07
++b 语句如下:if(++b==8) { b=0; direction=!direction; }
x)NRx~O5=~Ϭ̴{:ⶶt*T+$3[!%(5$3?V$S ;*醍f05=7' 5>0G?tBDIՙi WwI@E_l~ڰ@y6@I[Z^dǪXh U$ف| qeT

++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
这个应该是一个循环