10进制转换成16进制while(c!=0) { int t = c%16; c/=16; a[++m]=t; } while(c!=0) { int t = c%16; c/=16; a[++m]=t; }