标签:nbsp 字符 str return string include turn double 字符串转数字
int,float,double 同理。
#include <sstream> #include <string> int main(){ double num; string str = "123.45"; stringstream ss; ss << str; ss >> num; return 0 }
标签:nbsp 字符 str return string include turn double 字符串转数字
原文地址:https://www.cnblogs.com/skyeisgood/p/12488537.html