首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下程序: #include<iostream> using namespace std; class AA{ int n; public: AA(int k):n(k){} int get(){retur
有如下程序: #include<iostream> using namespace std; class AA{ int n; public: AA(int k):n(k){} int get(){retur
admin
2012-01-20
64
问题
有如下程序: #include<iostream> using namespace std; class AA{ int n; public: AA(int k):n(k){} int get(){return n;} int get()const{return n+1;} }; int main() { 从a(5); const AA b(6); cout<<a.get()<<b.get(); return 0; } 执行后的输出结果是( )。
选项
A、55
B、57
C、75
D、77
答案
B
解析
转载请注明原文地址:https://www.kaotiyun.com/show/lCVp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有以下程序#include<stdio.h>intfun(intn){inta;if(n==1)return1;a=n+fun(n-1);
有以下程序#include<stdio.h>main(){structcm{intx;inty;}a[2]={4,3,2,1};printf("%d\n",a[0].y/a[0].x*a[1].x);}程序运行后的输出结果是()。
有以下程序:#includemain(){intx=8:for(;X>0;X一一){if(x%3){printf(“%d,”,X一一);continue;
下列程序的输出结果是()。#inc1udevoidmain(){inta=0,b=1,c=2;if(++a>0||++b>0)++c;printf("%d,%d,%d",a,b,c);
以下程序的输出结果是()。#include#defineF(x)2.84+x#definew(y)printf("%D",(int)(y))#defineP(Y)w(y)main()
有以下程序#includevoidfun(intx,inty,int*c,int*d){*c=x+y;*d=x-y;}main(){inta=4,b=3,c=0,d=0;fun(a,b,&c
随机试题
柳永《八声甘州》:__________,何事苦淹留?
在Word2003中,当一张表格超过一页时,通常要在第二页的续表中添加表格的标题行,下列做法中可以实现该操作的是_________。
(2005年考试真题)根据中外合作经营企业法律制度的规定,下列有关中外合作经营企业组织形式和组织机构的表述中,正确的是()。
中国公民李某为境内甲公司设计部经理,2016年11月有关收支情况如下:(1)基本工资8000元,全年一次性奖金30000元:(2)为其他单位提供一项设计服务,分两次取得全部劳务报酬,每次1500元;(3)在某杂志发表专业文章一篇,取得稿酬4000元;
为判断L公司会计报表中固定资产项目的总体合理性,通常可以采用的分析性复核程序有( )。假定不考虑审计重要性水平,A注册会计师对下列事项应提出审计调整建议的有( )。
"Howdidyoudoit,Dad?Howhaveyoumanagedtonottakeadrinkforalmost20years?"Ittookmealmost20yearstohavethe【C1
被习近平总书记称为“共产党人精神上的‘钙’”的是()。
有管理的浮动汇率(青岛大学2014真题)
Seldomdidwerealizethatmanyofourhairproblems______whatweeat.
Flyingiseasilythefastestwaytotravellong【T1】______.AshipcansailacrosstheAtlanticinthreeandahalfweeks.TheC
最新回复
(
0
)