为什么这些代码在Xcode运行不起来, 而把== 换成=却可以?
#include <stdio.h>
int main()
{
int num,bw,sw,gw;
for(num = 100 ; num < 1000 ; num++)
bw = num/100;
sw = (num%100)/10;
gw = num%10;
if( bw * bw * bw + sw * sw * sw + gw * gw * gw == num)
{
printf("水仙花数是%d\n",num);
}
return 0 ;
}