单项选择题

下面的函数模板定义中错误的是()。

A.template<CLASS Q>
B.template<CLASS Q> Q F(Q {retum Q+x;) Q F(Q {return x+x;}
C.template<classT>
D.template<class T> TF(T {return x*x;) Bool F(t{return x>1;)

<上一题 目录 下一题>
热门 试题

单项选择题
在表达式x-y中,“_”是作为非成员函数重载的运算符。若使用显式的函数调用代替直接使用运算符“_”,这个表达式还可表示为()。

A.operator-(
B.operator-(y,
C.operator-(
D.operator-(x,

单项选择题
下列函数中对调用它的函数没有起到任何作用的是()。

A.void f1(double&{--x;)
B.double f2(double {return x-1.5;)
C.void f3(double {--x;)
D.double f4(double *{--*x;retum *x;}

相关试题
  • 以下函数模板max的功能是:返回数组a中最大...
  • 下面程序的执行结果是()。
  • 下列程序的输出结果是()。
  • Staff类含有int型数据成员ID,两个Staff对...
  • 在下面程序的横线处填上适当的内容,使程序...