printf("enter the student dormitory:");scanf("%d,&value");for(i=0;i<5;i++)if(person[i].dormitory==value){index=i;break;}else{index=-1;}if(index!=-1){printf("%d\t%s\n",person[i].num,person[i].name);}else{printf("error\n");}}为什么用输入函数输入value的值后老是运行失败
添加回答
举报
0/150
提交
取消