小编Kap*_*wal的帖子

使用:索引 & 0x01

我想知道代码中那个 (index & 0x01) 的用途是什么?

if(((arr[index] >= 0) && (!(index & 0x01))) 
                || ((arr[index] < 0) && (index & 0x01))) 
{ 
    outofplace = index; 
} 
Run Code Online (Sandbox Code Playgroud)

c++

-1
推荐指数
1
解决办法
539
查看次数

标签 统计

c++ ×1