update typerr

This commit is contained in:
冉文杰
2017-04-01 17:37:30 +08:00
parent 17e0ee3a0b
commit 05f1602688
74 changed files with 0 additions and 0 deletions
@@ -0,0 +1,18 @@
#include "stdio.h"
int one_appear_count_by_binary(int num){
int count = 0;
while(num !=0 ){
num &= num-1;
count++;
}
return count;
}
int main(int argc, char const *argv[])
{
int test = 10;
printf("%d\n", one_appear_count_by_binary(test));
printf("%d\n", one_appear_count_by_binary(32+1));
return 0;
}