int转十六进制字符串
//将int转为十六进制字符串
string intToHex(int num) {
stringstream stream;
stream << hex << num;
return stream.str();
}
//使用方法
int cutTimes=5303;
string hex = intToHex(cutTimes); //"14B7"
int num=50;
string hex=inToHex(num);//"32"