求解大神么输出结果为什么是
q
STEP3
step1
step2
STEP3
而不是
q
STEP3
step1
step2
int main(void)
{
char ch;
while((ch=getchar())!='#')
{
laststep:printf("STEP3\n");
if(ch=='\n')
continue;
printf("step1\n");
if(ch=='c')
continue;
else if(ch=='b')
break;
else if(ch=='g')
goto laststep;
printf("step2\n");
}
printf("DONE\n");
getchar();
getchar();
return 0;
}