摘要:
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)
浙公网安备 33010602011771号