查找输入整数二进制中1的个数
void hwOJ(){
int a = 15;
char array[32] = { 0 };
char t = '1';
_itoa_s(a, array, 2);
int len = strlen(array);
int count = 0;
for (int i = 0; i < len; ++i){
if (array[i] =='1')++count;
}
cout << count << endl;
}