c++程序设计,错误:error: expected `;' before '{' token

#include"stdio.h"
int main()
{
float sg,tz;
scanf("%f%f",&sg,&tz);
float bztz,lsa;
lsa=0.9;
bztz=(sg-100)*lsa;
swich((int)(bztz-tz))
{
case <6>0:
case >-6<0: printf("You are not fat or thin");break;
case <11>6: printf("You are a little fat");break;
case >-11<-6: printf("You are a little thin");break;
case <16>11: printf("You are fat");break;
case >-16<-11: printf("You are thin");break;
case <-16: printf("You are very thin");break;
case >16: printf("You are very fat");
}
}

switch...case...语句不能用于判断大于小于,改成if...else if...else...吧,另外你的switch写错了
温馨提示:答案为网友推荐,仅供参考
相似回答