各位大神,以下程序编释时会出现:expression not boolean。请问如何解决?
bool is_leap_year(int ai_0) {
if (MathMod(ai_0, 100) == 0.0 MathMod(ai_0, 400) == 0.0) return (TRUE);
else {
if (MathMod(ai_0, 100) != 0.0 MathMod(ai_0, 4) == 0.0) return (TRUE);
else return (FALSE);
}
}
if (MathMod(ai_0, 100) !== 0.0 MathMod(ai_0, 4) == 0.0) return (TRUE);
else return (FALSE);
}
}
少了个等号 。
mary1331 发表于 2019-7-28 23:45
if (MathMod(ai_0, 100) !== 0.0 MathMod(ai_0, 4) == 0.0) return (TRUE);
else return (FALSE) ...
好象不是这个原因哦。
MT4编程问题求教:expression not boolean如何解决?
回复:0 浏览:221
- 楼主admin 圈主
- 2020-01-01 15:08