十进制转换为16进制 void tranverse(int num) { vector<int>a; while(num) { a[i]=num%16; num=num/16; } reverse(a.begin().a.end()); }