首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下头文件: int fl(), static int f2(); class MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有隐含
有如下头文件: int fl(), static int f2(); class MA{ public: int f3(); static int f4(); }; 在所描述的函数中,具有隐含
admin
2020-11-11
16
问题
有如下头文件:
int fl(),
static int f2();
class MA{
public:
int f3();
static int f4();
};
在所描述的函数中,具有隐含的this指针的是( )。
选项
A、f1
B、f2
C、f3
D、f4
答案
C
解析
此题考查的是this指针。this指针是…个隐含的指针,它隐含于每个类的非静态成员函数中,它明确地表示出了成员函数当前操作的数据所属的对象。题目中,只有f3()满足“类的非静态成员函数”的要求,故应选C选项。
转载请注明原文地址:https://kaotiyun.com/show/heyp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
设树T的深度为4,其中度为1,2,3,4的结点个数分别为4,2,1,1。则T中的叶子结点数为()。
在下面的类定义中,横线处应填入的内容是()。c1assFred{public:voidprint(){cout<<data<<end1;)voidsetData(doubled){data=
请使用VC6或使用【答题】菜单打开考生文件夹proj2下的工程proj2,此工程中含有一个源程序文件proj2.epp。函数char*GetNum(char*src,char*buf)从src开始扫描下一个数字字符序列,并将其作为一个字符串取出放人字符串空
下列关于运算符重载的叙述中,错误的是()。
有如下函数模板:template<typenameT,typenameU>Tcast(Uu){returnu;}其功能是将U类型数据转换为T类型数据。已知i为int型变量,下列对模板函数cast的调用中正确的是(
在函数中,可以用auto、extern、register和static这四个关键字中的一个来说明变量的存储类型,如果不说明存储类型,则默认的存储类型是()。
下列关于函数的叙述中,正确的是()。
软件测试用例包括()。
对类成员访问权限的控制,是通过设置成员的访问控制属性实现的,下列不是访问控制属性的是()。
使用VC6打开考生文件夹下的源程序文件modi3.cpp。其中定义的类并不完整,按要求完成下列操作,将类的定义补充完整,使得程序输出21到屏幕。完成以下功能:(1)增加静态私有变量mNumber,类型为int,请在注释∥********1***
随机试题
党的十三届全国人大一次会议通过的宪法修正案,把习近平新时代中国特色社会主义思想载入宪法,实现了从党的指导思想向国家指导思想的转化。习近平新时代中国特色社会主义思想是()
内分泌疾病定位诊断检查不包括
A.鹅口疮与声音嘶哑B.咽喉和支气管刺激C.心悸和心动过速D.口干、口苦及尿潴留E.发热、脱水和心律失常
相关人员在值班、巡查、检测、灭火演练中发现的消防设施存在问题和故障后,下列说法中不正确的是()。
协议出让国有土地使用权的最低价由()批准。
1949年,中共召开七届二中全会主要是为了()。
如果学校的财务部门没有人上班,我们的支票就不能人账。我们的支票不能人账,因此,学校的财务部门没有人上班。请在下列各项中选出与上句推理结构最为相似的一句。()
进程P1、P2、P3、P4、P5和P6的前趋图如下图所示:若用PV操作控制这6个进程的同步与互斥的程序如下,那么程序中的空①和空②处应分别为(49);空③和空④处应分别为(50);空⑤和空⑥处应分别为(51)。(49)
Completethetablebelow:WriteNOMORETHANTHREEWORDSforeachanswer.
【1】【4】
最新回复
(
0
)