kntty.hateblo.jp

ここに何か書く。

2014-10-01から1ヶ月間の記事一覧

operator()でCSVパーサ

boost::program_optionsの operator()の使い方に触発されて、 CSVパーサを実装。 #include <fstream> #include <boost/tokenizer.hpp> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> typedef boost::char_separator<char> separator; typedef boost::tokenizer<separator> tokenizer; // CSVパーサクラス class CsvParse…</separator></char></boost/lexical_cast.hpp></boost/algorithm/string.hpp></boost/tokenizer.hpp></fstream>

初投稿

気になるコードや技術などを、メモしていく、かもしれません。