看题有点小晕......... C是不是代表运算符+,-,*,/ scanf("%c",&c); switch(c) { case '+':printf("a+b=%d\n",(a+b));break; case '-':printf("a-b=%d\n",(a-b));break; case '*':printf("a*b=%d\n",(a*b));break; case '/':printf("a/b=%d\n",(a/b));break; default:printf("error\n");break; }
scanf("%c",&c); switch(c) { case '+':printf("a+b=%d\n",(a+b));break; case '-':printf("a-b=%d\n",(a-b));break; case '*':printf("a*b=%d\n",(a*b));break; case '/':printf("a/b=%d\n",(a/b));break; default:printf("error\n");break;还用要吗 }