19 lines
381 B
C++
19 lines
381 B
C++
#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 <iostream>
|
|
#include <vector>
|
|
#include "rapidcsv.h"
|
|
|
|
int main()
|
|
{
|
|
rapidcsv::Document doc("examples/colhdr.csv");
|
|
|
|
std::vector<float> col = doc.GetColumn<float>("Close");
|
|
std::cout << "Read " << col.size() << " values." << std::endl;
|
|
}
|