单选题
C++
2014-04-23
类模板的模板参数( )。
A.只能作为数据成员的类型
B.只可作为成员函数的返回类型
C.只可作为成员函数的参数类型
D.以上三种均可
参考答案
D
答案解析
略
你可能感兴趣的试题
A.template<class T,int i=0>
B.template<class T,class int i>
C.template<class T,typename T>
D.template<class T1,T2>