level 9
YYYYXoxoxo
楼主
求大佬指导下!
这段代码问题在哪?
小白我表示找不到哪错了啊!![[疑问]](/static/emoticons/u7591u95ee.png)
![[疑问]](/static/emoticons/u7591u95ee.png)
![[疑问]](/static/emoticons/u7591u95ee.png)
#include<stdio.h>
int main(void) {
char a = 0;
char b = 0;
char c = 0;
there:
printf("enter a letter\n ");
scanf("%c", &a);
switch (a) {
case 'y':
printf("you enterance" "is y");
break;
case 'n':
printf("yuo touch me \n");
break;
default:
printf("\a error\n");
}
printf("\n if yuo want to do this again.\n please enter y.");
scanf("%c", &b);
// scanf("%c", &b);
printf("%c",b);
if (b == 'y') {
printf("%c", b);
goto there;
}
return 0;
}
2017年03月09日 16点03分
1
这段代码问题在哪?
小白我表示找不到哪错了啊!
#include<stdio.h>
int main(void) {
char a = 0;
char b = 0;
char c = 0;
there:
printf("enter a letter\n ");
scanf("%c", &a);
switch (a) {
case 'y':
printf("you enterance" "is y");
break;
case 'n':
printf("yuo touch me \n");
break;
default:
printf("\a error\n");
}
printf("\n if yuo want to do this again.\n please enter y.");
scanf("%c", &b);
// scanf("%c", &b);
printf("%c",b);
if (b == 'y') {
printf("%c", b);
goto there;
}
return 0;
}