#ifndef MIN_H #define MIN_H #include //for the strcmp function //Function declarations and definitions. //T must be "copy constructable" and "less-than comparable." 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; } } #endif