我用的时候:
if( a>=0 && a<100 && b>=0 && b<200 )
一切正常,但如果我使用:
if( 0<=a<100 && 0<=b<200 )
我的程序崩溃了.a和b =浮动.有人可以告诉我有什么区别吗?
c++ floating-point int if-statement
c++ ×1
floating-point ×1
if-statement ×1
int ×1