• 2022-06-16 问题

    下列函数模板的定义中,合法的是( )。 A: templateT abs(T X){return x<07-x:X;} B: template ClassT abs(T x){return x<07-X:x;} C: template Tabs(T X){return x<07-x:X;} D: template T abs(T x){return X<0-X:x;}

    下列函数模板的定义中,合法的是( )。 A: templateT abs(T X){return x<07-x:X;} B: template ClassT abs(T x){return x<07-X:x;} C: template Tabs(T X){return x<07-x:X;} D: template T abs(T x){return X<0-X:x;}

  • 1