// function template // #include using namespace std; template T GetMax (T a, T b) { T result; result = (a > b) ? a : b; return (result); } int main () { int i = 5, j = 6, k; long l = 10, m = 5, n; float x = 27.5, y = -27.5, z; k = GetMax(i, j); n = GetMax(l, m); z = GetMax(x, y); z = GetMax(x, y); cout << k << endl; cout << n << endl; cout << x << endl; return 0; }