C 語言小叮嚀
REMEMBER: the precedence of bitwise operators (not including shift operators) is lower than that of relational & equality operators! For example:
if (r.bytes[0] & 0xF0 == 0xB0)
is actually
if (r.bytes[0] & (0xF0 == 0xB0))
instead of
if ((r.bytes[0] & 0xF0) == 0xB0)
--
不過除這隻蟲也不會太難就是了 XD。
Labels: Programming
<< 回到主頁