回複:計算機程序題

來源: 2007-12-20 23:59:43 [博客] [舊帖] [給我悄悄話] 本文已被閱讀:

int i=0;
while( !(n & 0x1)) {
n >>= 1;
i++;
}
n ^= 0x1;
while(i>0) n