欢迎来到天天文库
浏览记录
ID:56701418
大小:59.00 KB
页数:2页
时间:2020-07-05
《ASCII码转换成16进制程序以及ASCII码与16进制对应关系.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ASCII与16进制转换ASCII16进制ASCII16进制ASCII16进制ASCII16进制NUL00HDLE10HSP20H030HSOH01HDC111H!21H131HSTX02HDC212H"22H232HETX03HDC313H#23H333HEOT04HDC414H$24H434HENQ05HNAK15H%25H535HACK06HSYN16H&26H636HBEL07HETB17H'27H737HBS08HCAN18H(28H838HHT09HEM19H)29H939HLF0AHSUB1AH*2AH:3AHVT0BHESC
2、1BH +2BH;3BHFF0CHFS1CH,2CH<3CHCR0DHGS1DH_2DH =3DHSO0EHRS1EH.2EH>3EHSI0FHUS1FH/2FH?3FHASCII16进制ASCII16进制ASCII16进制ASCII16进制@40HP50H、60Hp70HA41HQ51Ha61Hq71HB42HR52Hb62Hr72HC43HS53Hc63Hs73HD44HT54Hd64Ht74HE45HU55He65Hu75HF46HV56Hf66Hv76HG47HW57Hg67Hw77HH48HX58Hh68Hx78HI49HY59H
3、i69Hy79HJ4AHZ5AHj6AHz7AHK4BH[5BHk6BH{7BHL4CH\5CHl6CHㄧ7CHM4DH]5DHm6DH}7DHN4EH↑5EHn6EH~7EHO4FH←5FHo6FHDEL7FH/*****************************************************函数名称:ASCI_16功能:将ASCII码转换成16进制参数:a为ASCII码返回值:b为十六进制*****************************************************/ucharASCI
4、_16(uchara){unsignedcharb;if(a>=0x30&&a<=0x39)b=a-0x30;elseif(a>=0x41&&a<=0x46)b=a-0x41+10;elseif(a>=0x61&&a<=0x66)b=a-0x61+10;returnb;}
此文档下载收益归作者所有