摘要: acm.tju.edu.cn原题 Ruratania is just entering capitalism and is establishing new enterprising activities in many fields including transport. The transpo 阅读全文
posted @ 2020-03-13 21:00 skye_0207 阅读(115) 评论(0) 推荐(0) 编辑
摘要: C++随手记--字符串转数字 int,float,double 同理。 #include <sstream> #include <string> int main(){ double num; string str = "123.45"; stringstream ss; ss << str; ss 阅读全文
posted @ 2020-03-13 19:38 skye_0207 阅读(134) 评论(0) 推荐(0) 编辑
摘要: C++标准库STL 之 我觉得应该有的方法——split vector<string> split(const string& s, const string& c) { vector<string> result; string::size_type pos1, pos2; pos2 = s.fi 阅读全文
posted @ 2020-03-13 17:26 skye_0207 阅读(310) 评论(0) 推荐(0) 编辑