#include "stdio.h"
main()
{
int x,y,sum;
char ch;
printf("pless input x y");
scanf("%b%b",&x,&y);
printf("pless input the ch");
ch=getchar();
switch(ch);
{
case '+';
sum=x+y;
break;
case '-';
sum=x-y;
break;
case '*';
sum=x*y;
break;
case '/';
sum=x/y;
break;
default;
ch='e'
}
if(ch!='e');
printf("sum=%b",sum);
else
printf("erro");
}
运行显示错误,检查了半天也没发现