if (var == false) { ... }
//int if(0 == val) //BOOL if(!val) //ptr if(val == NULL) //float if(abs(val) < 1e^-3) const float EPSINON = 0.0001; if((val >= -EPSINON)&&(val <= EPSINON))
bool var = true;
if (var);
int var = 0;
if (var == 0);
float var = 0
const float EPSION = 0.000001
if (var>= -EPSION && var <= EPSION)
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题