c++
前回の記事でWindows環境でCaffeを利用できるようにした。これを別プロジェクトからAPI的に利用したかったので実施した。実力不足で不恰好になっているため、改善方法は継続して調査。作成したプログラムは少し重いがGitHubで公開中なので、本ページの最後か…
CSVの行(文字列)を要素ごとに分割してvectorで受け取る。 vector<string> split(string str, char c){ vector<string> v; string buf = ""; stringstream ss; ss << str; while (getline(ss, buf, c)){ v.push_back(buf); } return v; } サンプルコード #include <iostream> #include <string></string></iostream></string></string>…