main()
{
int student[10][4];
int team,p,score,a;
for(a=0;a<=3;)
{printf("1 jin ru xiu gai mo shi,2 jin ru cha zhao,3 tui chu!\n");
scanf("%d",&a);
switch(a)
{
case 1:
{
printf("jin ru xiu gai mo shi,qing shu ru xiu gai zu.-1 fan hui\n");
for(team=0;team<0;)
{scanf("%d",&team);
if(team==-1) break;
if(team!=-1)
{printf("yi ci shu ru zhi.\n");
for(p=0;p<4;p++)
{scanf("%d",&score);
student[team][p]=score;}
}
}
}
for(p=0;p<4;p++)
printf(" %d",student[team][p]);
break;
case 2:
{
printf("jin ru cha zhao mo shi.\n");
printf("shu ru cha zhao zu,-1 fan hui\n");
for(team=0;team<10;)
{
scanf("%d",&team);
if(team==-1)
break;
else printf("%d zu de suo you zhi.\n",team);
{
for(p=0;p<4;p++)
printf(" %d",student[team][p]);
}
}
}
case 3:{exit(a); break;}
}
}
getch();
}
case 1部分运行总是有问题,问题出在了哪里?请麻烦指点下。