#include #include #include "date.h" using namespace std; void f(const date& d); int main() { date today; f(today); f(today + 7); //does not change the value of today f(today); (today + 7).print(); cout << " has julian date " << (today + 7).julian() << ".\n"; return EXIT_SUCCESS; } void f(const date& d) { d.print(); cout << " has julian date " << d.julian() << ".\n"; }