#include #include #include //for the strcmp function #include "date.h" //for class date using namespace std; //Function declarations and definitions template T min(T a, T b) { if (b < a) { return b; } else { return a; } } const char *min(const char *a, const char *b) { if (strcmp(b, a) < 0) { return b; } else { return a; } } int main() { date today; //no-argument constructor constructs today's date date tomorrow {today + 1}; //operator+(today, 1); cout << ::min(10, 20) << "\n" << ::min(3.14, 2.71) << "\n" << ::min(today, tomorrow) << "\n" << ::min("hello", "goodbye") << "\n"; return EXIT_SUCCESS; }