#include "Jeep/JParser.hh" int main(int argc, char**argv) { using namespace std; bool aap, noot, mies; vector zus; JParser<> z; try { z['a'] = make_field(aap); z['b'] = make_field(noot); z['c'] = make_field(mies); z['d'] = make_field(zus) = JPARSER::initialised(); z(argc, argv); } catch(const exception &error) { cerr << error.what() << endl; return 2; } cout << "aap: " << aap << endl; cout << "noot: " << noot << endl; cout << "mies: " << mies << endl; cout << "zus: "; copy(zus.begin(), zus.end(), ostream_iterator(cout," ")); cout << endl; }