swith程序的错误
											 main(){
int a,b;
printf("a= ");
scanf("%d",&a);
b=a/1000;
if(0<a&&a<1000)
printf("mian shui");
else if(a<0)
printf("shu ru you wu");
else
swith(b)
{
case 1:
case 2:
case 3:
case 4: printf("jiao fei%d\n",a*0.02);
case 5:
case 6:
case 7:
case 8:
case 9: printf("jiao fei%d\n",a*0.03);
case 10: printf("jiao fei%d\n",a*0.05);
}
getch();
}
运行时提示:错误 noname.c 13: 语句缺少';'在 main 函数中
恩,调试了半天也不见有变化
 麻烦朋友们帮我看下 谢谢先
 麻烦朋友们帮我看下 谢谢先 
										
					
	


 
											





 
	    

 
	


 谢谢lijy520,呵呵 为什么switch输错 会提示语句缺少';'不提示关键字错误呢.......呵呵 现在对c语言越发感兴趣了 我要努力了
谢谢lijy520,呵呵 为什么switch输错 会提示语句缺少';'不提示关键字错误呢.......呵呵 现在对c语言越发感兴趣了 我要努力了 ,以后请大家多指教啊
,以后请大家多指教啊