#ifndef MIN_H #define MIN_H #include //for the strcmp function //Function declarations and definitions. //T must be "less-than comparable." template const T& min(const T& a, const 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; } } #endif