BOOL型变量:if(!var) Int型变量:if(var==0) Float型变量: Const float EP=0.00001; If(x>=-EP&&x<=-EP) 指针变量:if(var==NULL)