单选题
C++
2008-03-20
下列函数模板的定义中,合法的是( )。
A.template Tabs(T x) {return x <0 – x: x;}
B.template class Tabs(Tx){retumx <0 -x;x;}
C.template Tabs(T x){retum x <0 -x;x;}
D.template T abs(T x){returm x <0 -x;x;}
参考答案
A
答案解析
暂无解析
你可能感兴趣的试题
A.3
B.constructor
destruclor
destruclor
C.copy constructor
D.3
dstructor destruclor
dstructor destruclor
A.11
B.111
C.1111
D.11111