摘要:
#include #include //#include using namespace std;int main () { int myints[] = {32,71,12,45,26,67,53,68}; int l=sizeof(myints)/sizeof(myints[0]);//数组... 阅读全文
摘要:
#include using namespace std;int func(int x){ int count=0; while(x) { x=x&(x-1);//与的次数就是包含1的个数 count++; } return count;}void main(){ int x; cin>>x; ... 阅读全文