摘要:
因为用的是vs2019,c++的很多功能还没有,也没有装boost,好多东西得自己写 就一个格式化 浮点数字为字符串弄死我了, string toFloat(float n) { char numstr[100]; sprintf(numstr, "%.4f", n); if (NULL == st 阅读全文
posted @ 2021-07-27 16:34 隐客 阅读(392) 评论(0) 推荐(0)
|
|||
|
摘要:
因为用的是vs2019,c++的很多功能还没有,也没有装boost,好多东西得自己写 就一个格式化 浮点数字为字符串弄死我了, string toFloat(float n) { char numstr[100]; sprintf(numstr, "%.4f", n); if (NULL == st 阅读全文
posted @ 2021-07-27 16:34 隐客 阅读(392) 评论(0) 推荐(0) |
|||