【发布时间】:2015-11-17 13:36:59
【问题描述】:
下面是我的代码:
#include <stdio.h>
int main ( )
{
float a = 5,b = 2;
int c,d;
c = a % b;
d = a/2;
printf("%d\n",d);
return 0;
}
当我尝试编译这个时,我得到了
“二进制 % 的无效操作数”
在第 6 行。我该如何解决?
【问题讨论】: