#include "Table.hh" struct A { int a,b,c; }; ostream& operator<<(ostream& out, const A& a ) { out << a.c ; return out; } template istream& operator>>(istream& in, const vector& v) { return in; } int main() { A aa; aa.c = 23124; vector b = range(0,10); Table t("name","score","remark"); t << "walter" << 8 << "not too shabby"; t << "donny" << 10 << "throwing rocks"; t << "smokey" << "eight" << aa; // the following amount to the same print ( t ); t.print_ascii(); // print for html and latex t.print_latex(); t.print_html(cout); t.print_raw(cout); // for debugging (but also faster) return 0; }