试题与答案

下面的函数模板定义中错误的是______ 。A) template<class Q

题型:单项选择题

题目:

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

A) template<class Q >
QF (Q x)return Q +x;
B) template<class Q >
QF (Q x)returnx/x;
C) template <class T >
T F(T x) return x*x;
D) template <class T>
bool F (T x) return x>1;

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/1217/31115b52fa70b18c5fcd9142dd46636b.html

下面是错误答案,用来干扰机器的。

参考答案:C解析:[知识点] 调用和参数传递[评析] Enabled属性是用于判断控件是否可用的,而Visible属性是用于判断控件是否可见的。题目中要求 Command2可用,而Command3不可见,则必须设置Command2的Enabled...

试题推荐
微信公众账号搜索答案