int r=0,scale=1,d,i; for(i=c.length-1;i>=0;i--) { d=c[i]-'0'; r+=d*scale; scale=scale*10;

日期:2021-06-08 13:09:24 人气:1

int r=0,scale=1,d,i; for(i=c.length-1;i>=0;i--) { d=c[i]-'0'; r+=d*scale; scale=scale*10;

define M sizeof(unsigned int)*8
int trans(unsigned n, int d, char s[])
{
static char digits[] ="0123456789ABCDEF"; /* 十六进制数字的字符 */
char buf[M+1];
int j, i = M;
if(d<2||d>16)
{
s[0]='&#
    A+
热门评论