#include #include #include "date.h" #include "fastdate.h" #include "smalldate.h" using namespace std; int main() { fastdate fd(date::january, 1, 2014); cout << fd << "\n"; fd += 280; //fd.operator+=(280); cout << fd << "\n\n"; smalldate sd(date::january, 1, 2014); cout << sd << "\n"; sd += 280; cout << sd << "\n\n"; cout << "sizeof (date) == " << sizeof (date) << "\n" << "sizeof (fastdate) == " << sizeof (fastdate) << "\n" << "sizeof (smalldate) == " << sizeof (smalldate) << "\n"; return EXIT_SUCCESS; }