#if 0 TMP=$(mktemp -d) c++ -std=c++11 -I src -o ${TMP}/a.out ${0} && ${TMP}/a.out ${@:1} ; RV=${?} rm -rf ${TMP} exit ${RV} #endif #include #include #include "rapidcsv.h" namespace rapidcsv { template<> void Converter::ToVal(const std::string& pStr, int& pVal) const { pVal = static_cast(roundf(100.0f * std::stof(pStr))); } } int main() { rapidcsv::Document doc("examples/colrowhdr.csv", rapidcsv::LabelParams(0, 0)); std::vector close = doc.GetColumn("Close"); std::cout << "close[0] = " << close[0] << std::endl; std::cout << "close[1] = " << close[1] << std::endl; }