摘要: //i要转化的十进制整数,width转化后的宽度,位数不足则补0 std::string dec2hex(int i, int width) { std::stringstream ioss; //定义字符串流 std::string s_temp; //存放转化后字符 ioss << std::h 阅读全文
posted @ 2021-12-21 10:43 zhxzh 阅读(2517) 评论(0) 推荐(0) 编辑