• 2022-07-25
    假设有模板定义如下:template T Min(T m1, T m2 ){return (m1
    A: template float Min(T m1, T m2 ){return (m1
    B: template T1 Min(T1 a[ ], T2 n ){T1 minnum=a[0] ;for (int i=0 ;ia[i]) minnum=a[i];return minnum;}
    C: template T1 Min(T1 m1, T2 m2 ){return (m1
    D: template T Min(T m1, T m2, T m3 ){T temp=Min(m1,m2) ;return Min(temp , m3) ;}
  • 举一反三