[求助]请改正下面的简单的函数模板, 让它正确运行。。。。谢谢
#include<iostream.h>
template〈class T〉
T max(T a, T b)
{
return a>b?a:b;
}
int main()
{
cout<<"the max of 2 and 7 is "<< max(2, 7)<<endl;
cout<<"the max of a and c is "<< max('a','c')<<endl;
return 0;
}
[此贴子已经被作者于2007-4-23 19:18:16编辑过]