[求助]函数调用没有结果
#include<iostream.h>
//#include<math.h>
template<class T>
T maxn(T a[ ],int n)
{
T max;
//max=a[0];
for(int i=0;i<n;i++)
{
max=a[i];
if(a[i]<a[i+1])
max=a[i+1];
}
return max;
}
void main()
{
int b[5];
// int max;
for(int i=0;i<5;i++)
cin>>b[i];
for(i=0;i<5;i++)
cout<<b[i]<<" ";
cout<<endl;
cout<<"The biggest number is :"<<maxn(b,5)<<endl;
}