【计算机类职业资格】二级C++机试-169及答案解析.doc

上传人:boatfragile160 文档编号:1324348 上传时间:2019-10-17 格式:DOC 页数:2 大小:24KB
下载 相关 举报
【计算机类职业资格】二级C++机试-169及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】二级C++机试-169及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、二级 C+机试-169 及答案解析(总分:100.00,做题时间:90 分钟)一、1改错题(总题数:1,分数:33.00)1.使用 VC6 打开考生文件夹下的工程 RevProj15。此工程包含一个源程序文件 RevMain15.cpp,但该程序中类的定义有错误。请改正程序中的错误,使它能得到正确结果。注意,不要改动主函数,不得删行或增行,也不得更改程序的结构。源程序文件 RevMain15.cpp 中的程序清单如下:/RevMain15.cpp#includeiostreamusing namespace std;class Sampleprivate:int x;static int y;

2、public:Sample(int a)x=a;y+=x;static void print(Sample s)cout“x=“x二级 C+机试-169 答案解析(总分:100.00,做题时间:90 分钟)一、1改错题(总题数:1,分数:33.00)1.使用 VC6 打开考生文件夹下的工程 RevProj15。此工程包含一个源程序文件 RevMain15.cpp,但该程序中类的定义有错误。请改正程序中的错误,使它能得到正确结果。注意,不要改动主函数,不得删行或增行,也不得更改程序的结构。源程序文件 RevMain15.cpp 中的程序清单如下:/RevMain15.cpp#includeiostreamusing namespace std;class Sampleprivate:int x;static int y;public:Sample(int a)x=a;y+=x;static void print(Sample s)cout“x=“x

展开阅读全文
相关资源
猜你喜欢
  • TCVN 7447-5-55-2010 Electrical installations of buildings Part 5-55 Selection and erection of electrical equipment Other equipment《建筑物电气装置 第5-55部分 电气设备的选择和安装 其他设备》.pdf TCVN 7447-5-55-2010 Electrical installations of buildings Part 5-55 Selection and erection of electrical equipment Other equipment《建筑物电气装置 第5-55部分 电气设备的选择和安装 其他设备》.pdf
  • TCVN 7447-5-56-2011 Low-voltage electrical installations Part 5-56 Selection and erection of electrical equipment Safety services《低压电气设施 第5-56部分 电气设备的选择和安装 安全服务》.pdf TCVN 7447-5-56-2011 Low-voltage electrical installations Part 5-56 Selection and erection of electrical equipment Safety services《低压电气设施 第5-56部分 电气设备的选择和安装 安全服务》.pdf
  • TCVN 7447-6-2011 Low-voltage electrical installations Part 6 Verification《低压电气设施 第6部分 检验》.pdf TCVN 7447-6-2011 Low-voltage electrical installations Part 6 Verification《低压电气设施 第6部分 检验》.pdf
  • TCVN 7447-7-701-2011 Low-voltage electrical installations Part 7-701 Requirements for special installations or locations Locations containing a bath or shower《低压电气设施 第7-701部分 特殊装置或.pdf TCVN 7447-7-701-2011 Low-voltage electrical installations Part 7-701 Requirements for special installations or locations Locations containing a bath or shower《低压电气设施 第7-701部分 特殊装置或.pdf
  • TCVN 7447-7-710-2006 Electrical installations of buildings Part 7-710 Requirements for special installations or locations Medical locations《建筑物电气装置 第7-710部分 特殊装置或场所的要求 医疗场所》.pdf TCVN 7447-7-710-2006 Electrical installations of buildings Part 7-710 Requirements for special installations or locations Medical locations《建筑物电气装置 第7-710部分 特殊装置或场所的要求 医疗场所》.pdf
  • TCVN 7447-7-714-2011 Eletrical installations of buildings Part 7 Requirements for special installations or locations Section 714 External lighting installations《建筑物电气装置 第7部分 特殊装置或场.pdf TCVN 7447-7-714-2011 Eletrical installations of buildings Part 7 Requirements for special installations or locations Section 714 External lighting installations《建筑物电气装置 第7部分 特殊装置或场.pdf
  • TCVN 7447-7-715-2011 Electrical installations of buildings Part 7-715 Requirements for special installations or locations Extra-low-voltage lighting installations《建筑物电气装置 第7-715部分 .pdf TCVN 7447-7-715-2011 Electrical installations of buildings Part 7-715 Requirements for special installations or locations Extra-low-voltage lighting installations《建筑物电气装置 第7-715部分 .pdf
  • TCVN 7447-7-717-2011 Electrical installations of building Part 7-717 Requirements for special installations or locations Mobile or transportable units《建筑物电气装置 第7-717部分 特殊装置或场所的要求 移.pdf TCVN 7447-7-717-2011 Electrical installations of building Part 7-717 Requirements for special installations or locations Mobile or transportable units《建筑物电气装置 第7-717部分 特殊装置或场所的要求 移.pdf
  • TCVN 7447-7-729-2011 Low-voltage electrical installations Part 7-729 Requirements for special installations or locations Operating or maintenance gangways《低压电气设施 第7-729部分 特殊装置或场所的要.pdf TCVN 7447-7-729-2011 Low-voltage electrical installations Part 7-729 Requirements for special installations or locations Operating or maintenance gangways《低压电气设施 第7-729部分 特殊装置或场所的要.pdf
  • 相关搜索
    资源标签

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1