浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年7月2日

摘要: C++ double类型转string类型后,怎么实现小数点后只显示一个数字#include #include #include template std::string fmt(T in, int width = 0, int prec = 0) {std::ostringstream s;s << std::setw(width) << std::setprecision(... 阅读全文
posted @ 2014-07-02 14:42 lexus 阅读(787) 评论(0) 推荐(0)