标签:stream 转换 string double res inpu pre include highlight
#include <iostream> #include <string> #include <sstream> string DoubleToString(double Input) { stringstream Oss; Oss<<Input; return Oss.str(); } double StringToDouble(string Input) { double Result; stringstream Oss; Oss<<Input; Oss>>Result; return Result; }
标签:stream 转换 string double res inpu pre include highlight
原文地址:https://www.cnblogs.com/jhmu0613/p/9266132.html