全部题库 / C++ / 试题详情
单选题 C++
2014-04-23

类模板的模板参数(  )。

A.只能作为数据成员的类型            
B.只可作为成员函数的返回类型
C.只可作为成员函数的参数类型        
D.以上三种均可

参考答案

D

答案解析

略

你可能感兴趣的试题

A.在编译时进行                      
B.属于动态联编
C.在运行时进行                      
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>