#include <stdio.h>
void main()
{ float x,y;
int z;
z=(x<0&&x!=-3 )+(x<=10&&x!=3&&x!=2)
scanf("%f",&x);
switch(z)
{case 1:y=xx+x-6;break;
case 2:y=xx+5x+6;break;
case 0 :y=x*x-x-1;}
printf ("y=%f",y);
}
报错:C:\Users\18041\Desktop\2.cpp(13) : error C2046: illegal case
执行 cl.exe 时出错.