[C++]提取字符串中,由特殊分隔符 分隔的数据
一、需求从字符串std::string left_card = “0/1/2/3/5/7”;提取std::liststd::string left_card_list = {“0”, “1”, “2”, “3”, “5”, “7”};二、实现#include<iostream>#include<vector>#include<string>std::string left_card = "0/1/2/3/5/7";std::string left_car
原创
2022-04-24 10:53:09 ·
1943 阅读 ·
0 评论