#include //for cout and cerr #include //for ifstream #include #include "date.h" using namespace std; int main(int argc, char **argv) { ifstream ifs("infile"); if (!ifs) { //if (ifs.operator!()) { cerr << argv[0] << ": couldn't open infile\n"; return EXIT_FAILURE; } for (date d; ifs >> d;) { //operator>>(ifs, d).operator void *(); cout << d << "\n"; //operator<<(operator<<(cout, d), "\n"); } return ifs.eof() ? EXIT_SUCCESS : EXIT_FAILURE; }