/* unsigned int reverse_bit(unsigned int value)
将二进制数00000000000000000000000000001101
倒序排后为10110000000000000000000000000000
输出它的十进制数(2550136832)
#include <stdio.h>
#include<math.h>
unsigned int reverse_bit(unsigned int value)
{
int x,y=0, i=31;
int ch=value;
while(ch!=0)
{
x=ch%2;
if(x!=0)
{
y=y+(x*pow(2,i));
ch=ch/2;
i--;
}
if(x=0)
{
y=y+pow(2,i);
ch=ch/2;
i--;
}
}
return y;
}
int main()
{
int y=0;
reverse_bit(25);
printf("%u\n",y);
return 0;
}
程序怎么能崩溃了 !!?
*/