摘要: void MySplit(const string& s, vector<string>& v, const string& c){ v.clear(); string::size_type pos1 = 0, pos2 = s.find(c); while (string::npos != pos 阅读全文
posted @ 2020-11-02 21:30 龙马8586 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: template <class Type>Type StringToNum(const string& str){ istringstream iss(str); Type num; iss >> num; return num;} template <class Type>string NumTo 阅读全文
posted @ 2020-11-02 21:24 龙马8586 阅读(242) 评论(0) 推荐(0) 编辑