true与false不是BOOL型的两个可能值吗?不是大小写等价的吗?
为什么
BOOL bTest
if (bTest == true)会有下面的警告?
warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation
而if (bTest == TRUE)则没有警告?
...全文
25712打赏收藏
VC++6中的TRUE与true有什么区别?
true与false不是BOOL型的两个可能值吗?不是大小写等价的吗? 为什么 BOOL bTest if (bTest == true)会有下面的警告? warning C4805: '==' : unsafe mix of type 'int' and type 'const bool' in operation 而if (bTest == TRUE)则没有警告?