各位帮忙看看哪里出问题了?
# include <iostream>using namespace std;
template <typename T>;
T max(T a, T b, T c)
{
if (a < b)
a = b;
if (a < c)
a = c;
return a;
}
int main(void)
{
int ia = 4, ib = 7, ic = 6;
double d1 = 52.236, d2 = 2.365, d3 = 2.362;
long l1 = 12365, l2 = 23145, l3 = 45678;
int i;
double d;
long l;
i = max(ia, ib, ic);
d = max(d1, d2, d3);
l = max(l1, l2, l3);
cout << "i = " << i << endl;
cout << "d = " << d << endl;
cout << "l = " << l << endl;
return 0;
}