#include #include #include "date.h" using namespace std; int main() { const date today; date nextWeek; nextWeek.next(7); //const int n {nextWeek.distance(today)}; //member function const int n {distance(nextWeek, today)}; //friend function cout << "The distance from "; today.print(); cout << " to "; nextWeek.print(); cout << " is " << n << " days.\n"; return EXIT_SUCCESS; }