字符串输入的10进制数字转化为16进制显示
时间:10-02
整理:3721RD
点击:
将10进制字符串用16进制显示
可以参考一下代码
- /*****************************************************************************
- ** Function name:
- ** Descriptions:
- ** parameters:
- ** Returned value:
- *****************************************************************************/
- unsigned char AscToHex(unsigned char aHex) {
- if(aHex =10)&&(aHex =0x30)&&(aChar =0x41)&&(aChar =0x61)&&(aChar<=0x66))
- aChar -= 0x57;
- else aChar = 0xff;
- return aChar;
- }
Labview有现成的转换器啊