我想将整数类型转换为字符串,明确指出我正在生成两位十六进制表示。
有没有解决方法?
发布于 2018-06-26 15:05:23
std::ostringstream rSS, gSS, bSS;
rSS << std::hex << rInt;
gSS << std::hex << gInt;
bSS << std::hex << bInt;
newR = rSS.str();
newG = gSS.str();
newB = bSS.str();
https://stackoverflow.com/questions/-100005526
复制相似问题