#include #include #include "date.h" using namespace std; int main() { const date d1(date::january, 1, 2014); const date d2(date::january, 3, 2014); const date d3(date::january, 4, 2014); midpoint(d1, d2).print(); cout << "\n"; //even distance midpoint(d2, d1).print(); cout << "\n"; midpoint(d1, d3).print(); cout << "\n"; //odd distance midpoint(d3, d1).print(); cout << "\n"; return EXIT_SUCCESS; }