摘要: 1、计算一个字节内有多少bit被置为1? 1 #include <stdio.h> 2 3 #define BIT7 (0x1<<7) //0x1000 0000 4 5 int calculate(unsigned char c) 6 { 7 int count = 0; 8 int i; 9 u 阅读全文
posted @ 2020-04-13 16:51 朱果果 阅读(191) 评论(0) 推荐(0) 编辑