去逗号 笔试的时候很怕遇到使用逗号分隔的输入,c++不像python有方便的split方法,c++需要使用sstream进行逗号分隔。 #include <iostream> #include <sstream> #include <string> #include <vector> constexpr auto SIZE = 5; using namespace std; int main() { vector<string> data(SIZE)