摘要: #include <stdio.h> int count_bits(unsigned x) { int bits = 0; while(x) { if(x & 1U) bits++; x >>= 1; } return bits; } int int_bits(void) { return coun 阅读全文
posted @ 2021-05-17 21:21 小鲨鱼2018 阅读(255) 评论(0) 推荐(0) 编辑