求一个数二进制中1的个数 #include<stdio.h> int main(){ int count=0; int N; scanf("%d",&N); while(N!=0){ N=N&(N-1); count++; } printf("%d",count); return 0; } ``