首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列关于 this 指针的叙述中,正确的是
下列关于 this 指针的叙述中,正确的是
admin
2020-07-23
20
问题
下列关于 this 指针的叙述中,正确的是
选项
A、类的成员函数都有 this 指针
B、类的友元函数都有 this 指针
C、任何与类相关的函数都有 this 指针
D、类的非静态成员函数都有 this 指针
答案
D
解析
本题考查this指针,只有类的非静态成员才有this指针,所以D选项正确。
转载请注明原文地址:https://jikaoti.com/ti/1yl0FFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
下列函数模板的定义中,合法的是
已知一运算符函数没有参数。下列关于该运算符函数的表述中错误的是
一间宿舍可住多个学生,则实体宿舍和学生之间的联系是( )。
有如下类定义和变量定义:classA{public:A(){data=0;}~A(){}intGetData()const{ret
有如下类定义:classNumber{private:staticintnum;};要初始化Number类的静态成员num,应当在后面加上语句:
关于函数声明格式中的,下列叙述错误的是
下列选项中不属于结构化程序设计原则的是()。
将E-R图转换到关系模式时,实体与联系都可以表示成()。
请使用“答题”菜单或使用VC6打开考生文件夹proj3下的工程proj3,其中声明了MagicNumber:类,该类是一个用于表示连续正整数序列的类。MagicNumber的成员函数Nar-cissistic的功能是查找该序列中的水仙花数水仙花数是指一个n
学生的记录由学号和成绩组成,N名学生的数据已在主函数中放入结构体数组s中,请编写函数fun,其功能是:把低于平均分的学生数据放入b所指的数组中,低于平均分的学生人数通过形参n传回,平均分通过函数值返回。注意:部分源程序给出如下。请勿改动
随机试题
试述甲状腺的血管。
慢性胃炎的特点
因受赠人的行为致使赠与人死亡或丧失行为能力的,赠与人的继承人行使撤销权的期限是()
阅读《谏逐客书》中的一段文字,回答下列小题:所以饰后宫、充下陈、娱心意、说耳目者,必出于秦然后可,则是宛珠之簪、傅玑之珥、阿缟之衣、锦绣之饰不进于前;而随俗雅化、佳冶窈窕赵女不立于侧也。夫击瓮叩缶,弹筝搏髀而歌呼呜鸣快耳目者,真秦之声也;《郑》、《
造成两眼视野对侧半同向性偏盲的损伤部位是
公路工程施工中,承包人对全部现场作业和施工方法的适用性、可靠性和安全性负责,因此他有权采用其认为合理经济的施工方法,监理工程师不得干预。()
“一通三防”是煤矿安全工作的重中之重。其中“三防”是指()。
某民族小学的学生以本民族的小孩为主,该校教师用本民族通用语言进行教学,该教师的教学行为()。
拳王穆罕默德.阿里因_______原因,而违抗征兵法。
对正处于哭闹状态的幼儿而言,成人帮助其控制情绪的最佳方法是()。
最新回复
(
0
)