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