#include #include #include "date.h" using namespace std; void f(const date& d); int main() { date today; f(today); ++today; //operator++(today); f(today); f(++today); //f(operator++(today)); f(++++today); //f(operator++(operator++(today))); f(++today += 365); //f(operator++(today).operator+=(365)); cout << "The julian date of the day after "; (++today).print(); //operator++(today).print() cout << " is " << (++today).julian() << ".\n"; return EXIT_SUCCESS; } void f(const date& d) { d.print(); cout << " has julian date " << d.julian() << ".\n"; }