switch expression not integral 差错提示这个 不是很懂 什么意思
#include<stdio.h>main(){floatscore;scanf("%f",&score);switch(score/10){case10:case9:p...
#include<stdio.h>
main()
{
float score;
scanf("%f",&score);
switch(score/10)
{
case 10:
case 9:printf("A\n");break;
case 8:printf("B\n");break;
case 7:printf("C\n");break;
case 6:printf("D\n");break;
default:printf("E\n");
}
} 展开
main()
{
float score;
scanf("%f",&score);
switch(score/10)
{
case 10:
case 9:printf("A\n");break;
case 8:printf("B\n");break;
case 7:printf("C\n");break;
case 6:printf("D\n");break;
default:printf("E\n");
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询