首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下头文件: int f1(); static int f2(); class MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有隐含
有如下头文件: int f1(); static int f2(); class MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有隐含
admin
2017-11-28
25
问题
有如下头文件:
int f1();
static int f2();
class MA{
public:
int f3();
static int f4();
};
在所描述的函数中,具有隐含的this指针的是( )。
选项
A、fl
B、f2
C、f3
D、f4
答案
C
解析
此题考查的是。this指针。this指针是一个隐含的指针,它隐含于每个类的非静态成员函数中,它明确地表示出了成员函数当前操作的数据所属的对象。题目中,只有f3()满足“类的非静态成员函数”的要求,故应选C选项。
转载请注明原文地址:https://kaotiyun.com/show/KRAp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
下列模式中,能够给出数据库物理存储结构与物理存取方法的是
下面描述中,符合结构化程序设计风格的是
按“先进后出”原则组织数据的结构是
派生类构造函数的调用顺序是先调用( )。
有如下定义:classMA{intvalue;public:MA(intn=0):value(n){}};MA*ta,tb;其中MA类的对象名标识符是______
有如下语句序列: int k=0; do{k+=5;cout<<’$’;} while(k<19); while(k-->0)cout<<’*’; 执行上面的语句序列输出字符“$”和“*”的个数分别是( )。
数据库设计的四个阶段是:需求分析,概念设计,逻辑设计和【】。
下列叙述中正确的是
已知数组a中的元素个数为n,下列语句的作用是将下标为i的元素移动到下标为i-1的单元,其中1≤i<n。例如,当n=4,a中原有数据为1、2、3、4时,则移动后a中元素为2、3、4、4。请将语句补充完整:for(inti=0;i<n-1;i++)
随机试题
轻型井点施工中,井点的间距可为()m。
下列焊条电弧焊的特点是正确的。
输卵管()
不属于脑灌注成像的应用是
中心静脉压正常值为
溴酸钾法测定异烟肼含量的方法是
2004─2009年普通高等教育本专科、中等职业教育招生数之和占图中三类教育招生总数比重最大的那一年普通高等教育本专科招生为()。
央行要取消对QDⅡ和QFⅡ资格额度的审批,要进一步扩大合格境内投资者(QDⅡ)和合格境外投资者(QFⅡ)的主体资格,增加投资额度。试分析这一政策的实施对我国证券市场将产生何种影响?
【B1】【B10】
A、Herprofessordidnotlikeherstory.B、Shehadtroublefinishingherassignment.C、Shedidnotlikethetopicshehadchosen
最新回复
(
0
)