如何在C语言中正确地编写此语句?我想说的是如果money = 4.59163e-41 AND 0那么.....
if (money = 4.59163e-41 && 0 )
printf(" You can't play for free! Bet some money! n");
else
printf(" You are ready to start!! n");
看起来您想要这样做。注意==
,而不是=
。
if (money == 4.59163e-41 || money == 0 )
=
是赋值,不是比较。