下列模板声明中,有语法错误的是( )。A.templateT fun(T x){return x;}B.template 下列模板声明中,有语法错误的是( )。A.template<typename T>T fun(T x){return x;}B.template<typename T>T fun(T x,int n){return x*n;}C.template<class T>T fun(T*p){return *p;}D.template<class T>T ClassA{T n;}

下列模板声明中,有语法错误的是( )。A.templateT fun(T x){return x;}B.template

下列模板声明中,有语法错误的是( )。

A.template<typename T>T fun(T x){return x;}

B.template<typename T>T fun(T x,int n){return x*n;}

C.template<class T>T fun(T*p){return *p;}

D.template<class T>T ClassA{T n;}


相关考题:

下列对模板的声明,正确的是()。A.templateB.templateC.template 下列对模板的声明,正确的是( )。A.template<T>B.template<classT1,T2>C.template<class T1,classT2>D.template<class T1;class T2>

下列对模板的声明中,正确的是A.templateB.templateC.template 下列对模板的声明中,正确的是A.template<T>B.template<class T1,T2>C.template<class T1,class T2>D.tamplate<class T1;class T2>

下列对模板的声明中正确的是()。A.templateB.templateC.template 下列对模板的声明中正确的是( )。A.template<T>B.template<class T1,T2>C.template<classT1,class T2>D.template<class T1;class T2>

下列模板的声明中,正确是A.templateB.templateC.templateD. 下列模板的声明中,正确是A.template<T>B.template<class T1,T2>C.template<class T1,class T2>D.template<class T1 ;class T2>

下列对模板的声明中,正确的是()。A.templateB.templateC.template 下列对模板的声明中,正确的是( )。A.template<T>B.template<classT1,T2>C.template<classT1,classT2>D.template<classT1;classT2>

下列对模板的声明中正确的是A.templateB.templateC.template 下列对模板的声明中正确的是A.template<T>B.template<class T1,T2>C.template<class T1,class T2>D.template<class T1;class T2>

下列对模板的声明中,正确的是A.templateB.templateC.template 下列对模板的声明中,正确的是A.template<T>B.template<class T1,T2>C.template<classT1,class T2>D.template<classT1;class T2>

下列模板声明中有语法错误的是A.templateT fun(T x){return x;}B.template 下列模板声明中有语法错误的是A.template<typename T>T fun(T x){return x;}B.template<typename T>T fun(T x,int n){return x术n;}C.template<class T>T fun(T*P){return*P;}D.template

下列对模板的声明,正确的是()A.template<T>B.template<class T1,T2>C.template<class T1,classT2>D.template<class T1;classT2>