void reverse(int *a, int l)
{
int *p=a, *q=a+l-1, t
while(p<q)
{
t=*p
*p=*q
*q=t
p++
q--
}
}
定义数组 调用这个函数即可。
unsigned char Flip(unsigned char x){
x = ((x&0x55)<<1)|((x&0xaa)>>1)
x = ((x&0x33)<<2)|((x&0xcc)>>2)
x = ((x&0x0f)<<4)|((x&0xf0)>>4)
return x
}