string 转换为数值

std::string s = "1.3,1.4,1.5" 字符串中的数字按照逗号分割,把a56爆大奖在线娱乐数字解析出来. void ParseStr(std::string& s, std::vector<float>& res) { char* pos = const_cast<char*>(s.c_str(
posted @ 2021-10-29 11:45  灰太狼锅锅  阅读(774)  评论(0编辑  收藏  举报