首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

suggest parentheses around 这个C语言警告是什么意思?解决办法

2013-03-29 
suggest parentheses around 这个C语言警告是什么意思?if( MacEntirely (MacEntirely&nSwitchState) ){

suggest parentheses around 这个C语言警告是什么意思?

if( MacEntirely == (MacEntirely&nSwitchState) )
    {
     \\
     }


MacEntirely 是一个宏。
#define MacEntirely 0x8
nSwitchState 是一个int型的变量。

上面的代码编译时出现警告:
"switchstrategy.cpp", line 628: warning #4259-D: suggest parentheses around
the operands of "=="
if( MacEntirely == MacEntirely&nSwitchState )

我想问下这个警告是什么意思?需要如何修改?谢谢。
[解决办法]
就是那个0x8最好有个括号的意思。

热点排行