csvpp

csvpp Commit Details


Date:2014-03-02 10:55:00 (11 years 1 month ago)
Author:Natalie Adams
Branch:default
Commit:3eeaa517e066
Parents: 561bd2190994
Message:Adding main.cpp

Changes:
Amain.cpp (full)

File differences

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;
}

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 8.66840s using 14 queries.