首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列关于 this 指针的叙述中,正确的是
下列关于 this 指针的叙述中,正确的是
admin
2015-07-22
43
问题
下列关于 this 指针的叙述中,正确的是
选项
A、类的成员函数都有 this 指针
B、类的友元函数都有 this 指针
C、任何与类相关的函数都有 this 指针
D、类的非静态成员函数都有 this 指针
答案
D
解析
本题考查this指针,只有类的非静态成员才有this指针,所以D选项正确。
转载请注明原文地址:https://jikaoti.com/ti/wwE0FFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
以下程序的输出结果是【】。#include<iostream.h>classobject{private:intval;public:
下列的各类函数中,()不是类的成员函数。
已知程序中已经定义了函数test,其原型是inttest(int,int,int);,则下列重载形式中正确的是______。
下列关于动态联编的描述中,错误的是()。
有如下程序段&include<iostream.h>voidmain(){inta=14,b=15,x;charc=’A’x=(a&&b)&&(c<’B’=;
最简单的交换排序方法是
进行文件操作需包含的头文件是()。
进行文件操作时需要包含()文件。
在面向对象方法中,类之间共享属性和操作的机制称为【】。
下列叙述中正确的是
随机试题
这些瀑布不为人所知,这________因为人们对它们不感兴趣或者它们不够迷人,________由于它们处于边远险要之地,游客要想一睹它们的风采就显得困难重重了。填入画横线部分最恰当的一项是()。
正常成人血清钾的参考值为
A.急性阑尾炎B.肠系膜淋巴结炎C.输尿管结石D.过敏性紫癜E.肠痉挛一过性腹痛无发热的是
A.高渗盐水试验B.水利尿试验C.螺内酯试验D.饥饿试验诊断胰岛素瘤有意义的试验是
有关阿司匹林在心血管病治疗中的作用,下列说法错误的是
铁路运输事故有多种类型,典型的铁路运输事故有()。
行政赔偿的范围包括损害公民人身自由权的赔偿、损害公民生命健康权的赔偿、损害公民名誉权的赔偿、损害财产权的赔偿。()
《宪法》规定各少数民族居住地方实行区域自治。()
数据库系统的核心是()。
Openingnightat.theGandhiRestaurantbroughtcriesofpraiseanddelightfromcustomerswhentheysampledtheuniquecuisine
最新回复
(
0
)