哪吒机器人提醒:

提醒:FLY
【标题】十六进制转换十进制code.
【摘要】前天,十六进制转换十进制,写完代码之后才知道有更简单的代码实现:int a;sscanf("abc", "%x", a);顺便附上我写的,#pragma hdrstop#include #include #include int hex_char_value(char c);int hex_to_decimal(const char* szhex);//---------------------------------------------------------------------------#pragma argsusedint hex_char_value(char c){ if(c >= '0' && c return c - '0';... (04-16 20:44)