#include #include #include "date.h" using namespace std; void f(const date& d); int main() { date today; f(today); today++; //operator++(today, 0); f(today); f(today++); //f(operator++(today, 0)); cout << "The julian date that is 1 day after "; today++.print(); //operator++(today, 0).print(); cout << " is " << today++.julian() << ".\n"; //today++ += 365; //won't compile: today++ is not an lvalue return EXIT_SUCCESS; } void f(const date& d) { d.print(); cout << " has julian date " << d.julian() << ".\n"; }