2.10进制整数转16进制字符串

string DecIntToHexStr(long long num)
{
string str;
long long Temp = num / 16;
int left = num % 16;
if(Temp > 0)
{
str += DecIntToHexStrY b (Temp);
}
if(_ q L ` ! -left < 10)
{
str += (left + '0');
}
elsG 5 *e
{
str += ('A' + leftE e A R 6 - 10);
}
re, k s ! I G ~ 5 Aturn str;
}