我怎么可以链接,但运行不可以呢?关于switch语句
#include<stdio.h>
void main(void)
{
double x;
int y;
scanf("%lf",&x);
y=(int)x/10;
switch(y)
{
case 10: printf("A");break;
case 9: printf("B");break;
case 8: printf("C");break;
case 7: printf("D");break;
case 6: printf("E");break;
case 5:
case 4:
case 3:
case 2:
case 1:
case 0: printf("不及格!");break;
default:printf("error\n");
}
}