strongchen 当前离线
版主
论坛元老
int16 temp1,temp2, temp3;
temp1 = (int16)Str2Hex(string[1]);
temp2 = (int16)Str2Hex(string[2]);
temp3 = temp1<<8 + temp2;
其中Str2Hex()是将字符转化为16进制数的函数,可以自己写。
TOP