csvpp

csvpp Mercurial Source Tree


Root/main.cpp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
#include <sstream>
#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;
 
}
Source at commit 95848a435a01 created 11 years 4 months ago.
By Nathan Adams, changing char to string

Archive Download this file

Branches

Tags

Page rendered in 1.85396s using 11 queries.