小编use*_*886的帖子

Android Hierarchy Viewer未显示视图的性能指标

我正在使用Android 2.2.使用HierarchyViewer检查视图时,不会显示任何性能指标.它显示了三种措施中的每一种都是'不适用'.为什么会这样?

android

5
推荐指数
1
解决办法
1293
查看次数

当无符号字符与 11100000 进行 OR 运算时,为什么按位 OR 运算无法按预期工作?

我无法理解为什么操作 'c | 11100000' 似乎不起作用。但我也注意到 'c | 10000000' 按预期工作。

#include <stdio.h>

int main()
{
    unsigned char c, c1;
    
    c = c & 0;
    c = c | 11100000;
    printf("%o \t", c);
    
    /** prints 140 ***/
    
    
    c = c & 0;
    c = c | 111;
    c << 5;
    printf("%o", c);
    
    /** prints 157 **/

    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c bit-manipulation bit-shift bitwise-operators bitwise-or

0
推荐指数
1
解决办法
206
查看次数