请问一下,goto SKIP; 什么意思,即具体用法
#include<graphics.h>#include<conio.h>
#include<cmath>
#define PI 3.14159
int main()
{
initgraph(640,480);
unsigned short key;
double a,r;//a是角度,r是弧度
a = 0;
r = a/360*2*PI;
double vx = 1*cos(r), vy = 1*sin(r);
double x = 320, y = 240;
while(1)
{
setfillcolor(WHITE);
solidcircle(x,y,30);
if(kbhit())
{
key = getch();
if(a == 360) a = 0;
if(a < 0) a += 360;
switch(key)
{
case 'w':
if(a<90 || a>270) a -= 10;
if(a>90 && a<270) a +=10;
if(a == 90) a = 270;
if(a == 270) goto SKIP;
break;
case 's':
if(a<90 || a>270) a += 10;
if(a>90 && a<270) a -=10;
if(a == 270) a = 90;
if(a == 90) goto SKIP;
break;
case 'a':
if(a>0 && a<180) a += 10;
if(a>180 && a<360) a -=10;
if(a == 0) a = 180;
if(a == 180) goto SKIP;
break;
case 'd':
if(a>0 && a<180) a -= 10;
if(a>180 && a<360) a +=10;
if(a == 180) a = 0;
if(a == 0) goto SKIP;
break;
}
}
Sleep(10);
SKIP:setfillcolor(BLACK);
solidcircle(x,y,30);
r = a/360*2*PI;
vx = 1*cos(r);
vy = 1*sin(r);
x += vx;
y += vy;
if(x <= 30 || x >= 610)
{
if(a>=0 && a<=180) a = 180 - a;
else a = a - 180;
}
if(y <= 30 || y >= 450)
{
a = 360 - a;
}
}
}