2018-11-04から1日間の記事一覧
「C++ 文字列 カンマ区切り」とかで検索するとヒットする記事等には、以下のようなコードがよく書かれている。(main関数は動作確認のために自分で付け足したもの) #include <iostream> #include <string> #include <vector> #include <sstream> using namespace std; vector<string> split(string str, c</string></sstream></vector></string></iostream>…