2020-01-10から1日間の記事一覧

c++ CSVを読み込む際、余計な文字が入ってしまう現象について

現象 以下のようなコードでCSVで読み込んだ際に余計な文字列が入る現象が発生しました。 #include <iostream> #include <string> #include <sstream> #include <vector> std::ifstream ifs; ifs.open(CSVpath.c_str()); std::string value; std::vector<std::string > values; bool isOpen = ifs.is_open();//</std::string></vector></sstream></string></iostream>…