由float转std::string的方法
摘要:std标准库中没有提供标准的方法,查阅资料,总结了两种仅仅在标准库支持下的转换方法: 1. 使用std中的sstream进行转换 Result: the 3.140000 convert to string style: "3.14". 2. 使用stdlib中的_gcvt_s()函数 Result
阅读全文
posted @ 2015-08-10 14:22
posted @ 2015-08-10 14:22
posted @ 2015-07-31 20:42
posted @ 2015-07-30 10:59
posted @ 2014-10-30 10:51