首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
已知如下程序的输出结果是23,请将画线处缺失的部分补充完整。 #include<iostream> using namespace std; class MyClass{ public: void Print( )c
已知如下程序的输出结果是23,请将画线处缺失的部分补充完整。 #include<iostream> using namespace std; class MyClass{ public: void Print( )c
admin
2012-01-20
56
问题
已知如下程序的输出结果是23,请将画线处缺失的部分补充完整。
#include<iostream>
using namespace std;
class MyClass{
public:
void Print( )const{eout<<23;}
};
int main( ){
MyClass*P=new MyClass( );
______.Print( );
return 0;
}
选项
答案
(* p)
解析
转载请注明原文地址:https://kaotiyun.com/show/ztVp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
以下叙述中正确的是
设有以下函数:intfun(intn,char*s){……}则下面对函数指针的定义和赋值均正确的是()。
以下程序拟读取一个姓氏,查找其对应的年龄并输出:#include<stdio.h>#include<string.h>#include<stdlib.h>structperson{charname[10];intage;};struetp
有以下程序:#include<stdio.h>intnew_div(doublea,doubleb){returna/b+0.5;}main(){printf("%d",new_div(7.8,3.1));}程序运行后的输出结果是(
有以下程序#include<stdio.h>main(){inta[4][4]={{1,4,3,2},{8,6,5,7},{3,7,2,5},{4,8,6,1}},i,k,t;
使用VC++2010打开考生文件夹下blank1中的解决方案。此解决方案的项目中包含一个源程序文件blank1.c。在此程序中,函数fun的功能是:判断形参s所指字符串是否是”回文”(Palindrome),若是,函数返回值为1;不是,函数返回值为0。”回
程序中若有以下的说明定义和语句:#include<stdio.h>#include<string.h>structSTR{charhum[10];ints;};main(){structSTRt,*p;p=&t;则不能给变量t的
以下不合法的用户标识符是()。
C语言中允许用外部说明来指定变量、函数和其他标识符的特征,这里所说的外部指的是()。
设置虚基类的目的是解决二义性问题,通过用关键字【】表示虚基类。
随机试题
可造成永久性秃睫的疾病为
影响牙周疾病流行的因素不包括
( )是占用资金所附代价或放弃使用资金所获报酬,是资金时间价值的表现形式。
下列关于劳动争议解决的说法,正确的是()。
下列不属于民办非企业单位行业分类的是()。
一位同学在斯坦福一比纳量表上测得智商为105,这位同学属于()。
Youwillhearfivepeoplegivingtheiropinionsonspankingchildren.Forquestions9-13,choosefromthelistA-Fwhateac
PassageThreeAbustookhimtotheWestEnd,where,amongthecrazycolouredfountainsofillumination,shatteringtheblue
Theevidentincreaseofthevarietyandamountofthedailyconsumptionitemsandimportedfoodproductshaveconsiderablyincre
HowisInternetaddictiondifferentfromcigaretteordrugaddiction?
最新回复
(
0
)