intk2whilek0,int k=0; while(n!=0) { if(n&1) a[k]=1; n>>=1; k++; }
#include<stdio.h> int main() { int k=0,times=0; while(k=0) { k++; times++; } printf("tmes=:%d\n",times); k=1,times=0; while(k=1) { k++; times++; if(times>10000) { break; } } printf("tmes=:%d\n",times); return 0; } 由此5261可以看出来,4102第165