#include #include #include "date.h" using namespace std; const date timebomb::operator/(int n) { if (n != 2) { cerr << "sum of 2 dates must be divided by 2, not by " << n << "\n"; exit (EXIT_FAILURE); } ticking = false; div_t d = div(sum, 2); if (d.rem < 0) { --d.quot; } return d.quot; }