高等继续教育 / 面向对象程序设计
正确率:100%
题型描述: 单选题
下面函数模板定义中不正确的是( )
A.template<class Q> Q F(Q x){ return Q+x; return x+x; }
B.template<class T>
C.template<class Q>
D.template<class T> T F(T x){return x*x; return x>1; }
下面函数模板定义中不正确的是( )
A.template<class Q> Q F(Q x){ return Q+x; return x+x; }
B.template<class T>
C.template<class Q>
D.template<class T> T F(T x){return x*x; return x>1; }
参考答案:
佳题速递: