#ifndef INTERVALH #define INTERVALH #include #include "date.h" using namespace std; class interval { const date begin; date end; public: interval(const date& initial_begin, const date& initial_end) : begin(initial_begin), end(initial_end) {} void change_end(const date& new_end) {end = new_end;} void print() const {cout << "(" << begin << ", " << end << ")";} }; #endif