#include using namespace std; template X getMax (X a, X b) { if (a < b) return b; else return a; } int main (int argc, char *argv[]) { cout << getMax (5, 7) << endl; cout << getMax (9, 7) << endl; cout << getMax (5.4, 7.2) << endl; cout << getMax (9.5, 7.2) << endl; }