会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhxzh
博客园
首页
新随笔
联系
订阅
管理
2021年12月21日
C++ | Int转十六进制字符串
摘要: //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)
编辑
公告