帮忙瞅瞅呀。。。不知道哪错了
#includeviod main()
{
int data1,data2,result,err=o; char op;
scanf("%d %c %d",&data1,&op,&data2);
switch(op)
{
case '+': result=data1+data2;break;
case '-': result=data1-data2;break;
case '*': result=data1*data2;break;
case '/': result=data1/data2;break;
case '%': result=data1%data2;break;
default:err=1;
printf("数据错误!\n");
}
if(!err) printf("%d\n",result);
}