#include #include #include "csvpp.h" using namespace std; using namespace csvpp; int main() { RowReader tmp; stringstream ss; ss << "field1,field2,field3\r\n123,234,345\r\n999,000,111\r\n"; ss >> tmp; rowiterator it; while(ss >> tmp) { for(it = tmp.begin(); it != tmp.end(); it++) cout << it->first << " => " << it->second << endl; cout << endl; } return 0; }