美文网首页
企鹅后台开发笔试题

企鹅后台开发笔试题

作者: 三三At你 | 来源:发表于2017-05-11 21:12 被阅读0次
void calc(int n)  
{  
    int i = 3;  
    n%=MAX;  
    int a = n/36;  
    int b = n%36;  
    while(i!=-1)  
    {  
        if(0<=b&&b<=9)  
            r[i--]=b+'0';  
        else  
            r[i--]=b-10+'A';  
        b = a%36;  
        a = a/36;  
    }  
    printf("%s\n",r);  
}

相关文章

网友评论

      本文标题:企鹅后台开发笔试题

      本文链接:https://www.haomeiwen.com/subject/dpdatxtx.html