Time:09-20
CodePudding user response:
written program has a problem, little semicolons brackets, specific what problem, you can post the code to see if
if (speed==1) For (int I=1; i<=10000; I++) {For (int j==1; J<=1000; j++); Speed=1; } Speed=0;
void updateWithoutInput () {int i, j; If (bullet_x & gt; 0) Bullet_x -; If ((bullet_x==enemy_x) & amp; & (bullet_y==enemy_y)) {Score++; Enemy_x=0; Enemy_y=rand () % width; Bullet_x=0; } If (enemy_x & gt; High) {Enemy_x=0; Enemy_y=rand () % width; } If (speed==1) For (int I=1; i<=10000; I++) { for (int j=1; J<=1000; j++); Speed=1; } Speed=0; If (speed==0) {Enemy_x + +; Speed=1; } } You removed a try=
this problem have also upset if (speed==1) For (int I=1; i<=10000; I++) {For (int j==1; J<=1000; j++); Speed=1; } Speed=0;
if (speed==1)//there is no written braces For (int I=1; i<=10000; I++)/the cycle what do you mean? {For (int j==1; J<=1000; j++);//for added a semicolon Speed=1; } Speed=0;
Page link:https//www.codepudding.com/database/15135.html