企鹅后台开发笔试题

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);  
}

你可能感兴趣的:(企鹅后台开发笔试题)