int a=16000;unsigned char buff[10];int b;//如果是要0x3e 0x80顺序b=a/256;buff[0]=b&0x0ff;buff[1]=a&0x0ff;//如果是要0x80 0x3e顺序memcpy(buff,(char *)&a,2);unsigned char buff[]="\x67\x93\x84";int a;a=buff[0]*256*256 + buff[1]*256 + buff[2];