首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序段中包含4个函数。其中具有隐含this指针的是( )。 int funl(); class Test{ public: int fura(); friend int fun3(); static
下列程序段中包含4个函数。其中具有隐含this指针的是( )。 int funl(); class Test{ public: int fura(); friend int fun3(); static
admin
2014-08-29
33
问题
下列程序段中包含4个函数。其中具有隐含this指针的是( )。
int funl();
class Test{
public:
int fura();
friend int fun3();
static int fun4();
}
选项
A、funl
B、fun2
C、fun3
D、fun4
答案
B
解析
this指针是成员函数所属对象的指针,它指向类对象的地址。成员函数通过这个指针知道自己属于哪一个对象。this指针是一个隐含的指针,它隐含于每个类的非静态成员函数中,它明确的地表示出了成员函数当前操作的数据所属的对象。
转载请注明原文地址:https://kaotiyun.com/show/HWNp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
数据字典通常包括5个部分,即数据项、数据结构、数据流、【】和处理过程。
下列对于软件测试的描述中正确的是______。
要在屏幕上显示“Hello,world!”应执行语句cout<<【】。
每个类______构造函数。
下面叙述错误的是()。
每个对象都维护了一个指向自身的指针,这个指针称为【】指针
在长度为n的顺序表的第i(1≤i≤n+1)个位置上插入一个元素,元素的移动次数为______。
有如下语句序列:intk=0;do{k+=5;cout<<’$;}while(k<19);while(k-->0)cout<<’*’;执行上面的语句序列输出字符$和*的个数分别是______。
数据库设计的根本目标是要解决______。
在一个容量为25的循环队列中,若头指针front=16,尾指针rear=9,则该循环队列中共有【】个元素。
随机试题
冷球蛋白血症不常见于二
脾的生理功能包括
系统规划进行短路电流计算的目的不包括()。
建设工程监理招标的特点不包括( )。
平行结转分步法的主要缺点是需要进行成本还原。()
2007年,甲公司出资60%、乙公司出资40%,投资创办丙有限责任公司,甲公司总经理刘平兼任丙公司的董事长。赵成打算加入丙公司成为股东,并拟人资20万元,下列几种方式中,符合《中华人民共和国公司法》的是()。
2014年中央人民政府工作报告指出,把消费作为扩大内需的主要着力点。要促进信息消费,实施“()”战略,加快发展第四代移动通信,推进城市百兆光纤工程和宽带乡村工程,大幅提高互联网网速。
为了促进全民大健身,市某部门准备开展一个老年人的万人共打太极拳活动并申报吉尼斯纪录。你作为该活动的负责人准备怎么做?
下列叙述中正确的是()。
A、Yes,onceamonth.B、Thankyouforcoming.C、It’stoolate.D、Hereyouare.A考查对一般疑问句的回答。问题意为“你经常出差吗?”A项Yes,onceamonth(是,一个月
最新回复
(
0
)