求助;为什么会出现C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\sizeyuansuan\
------#include <stdio.h>
int main()
{
int a,b,c;
char x;
scanf("%d %c %d",&a,&x,&c);
if(x=+)c=a+b;
if(x=-)c=a-b;
if(x=*)c=a*b;
if(x=/)c=a/b;
printf("The Result is %d\n",c);
return 0;
}--------------Configuration: yuansuan - Win32 Debug--------------------
Compiling...
yuansuan.c
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\sizeyuansuan\yuansuan.c(7) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\sizeyuansuan\yuansuan.c(8) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\sizeyuansuan\yuansuan.c(9) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio\MyProjects\sizeyuansuan\yuansuan.c(10) : error C2059: syntax error : '/'
执行 cl.exe 时出错.
yuansuan.exe - 1 error(s), 0 warning(s)
萌新求助,大佬赐教哈,还想让这个程序可以循环怎么弄啊,自己学的不会......