标题: /* Note:Your choice is C IDE */ [打印本页] 作者: 1275864744 时间: 2012-11-8 12:05 标题: /* Note:Your choice is C IDE */ /* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{int a,b,sum;
char c,d;
scanf("%c",d);
while(d!='#')
{scanf("%d%c%d",&a,&c,&b);
switch(c)
{case '+':sum=a+b;break;
case '-':sum=a-b;break;
case '*':sum=a*b;break;
case '/':sum=a/b;break;}
printf("%d\n",sum);} } 本来想模拟两个简单的整数加减乘除,按#后结束运算,可是不知道哪错了,求帮助,求改正,要交作业的