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

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

二级 C+机试-137 及答案解析(总分:100.00,做题时间:90 分钟)一、1改错题(总题数:1,分数:30.00)(分数:30.00)填空项 1:_填空项 1:_填空项 1:_二、2填空题(总题数:1,分数:40.00)(分数:40.00)填空项 1:_填空项 1:_填空项 1:_填空项 1:_三、3综合应用题(总题数:1,分数:30.00)1. (分数:30.00)_二级 C+机试-137 答案解析(总分:100.00,做题时间:90 分钟)一、1改错题(总题数:1,分数:30.00)(分数:30.00)填空项 1:_ (正确答案:MyClass(int val):N(1))解析:解析 常数据成员 N 的初始化必须在构造函数的初始化列表中完成。程序中的格式不对。填空项 1:_ (正确答案:MyClass() deletep;)解析:解析 析构函数中释放 p 指向的动态空间,但格式不对。填空项 1:_ (正确答案:void print(MyClassfor(int i=0;iM;i+)for(int j=0;jN;j+)if(maxreturn max:)解析:解析 此处为求矩阵最大值的函数实现。可先假定最大值 max 为矩阵第一行第一列的元素,然后逐个和矩阵其他元素比较,遇到比 max 大的数则赋值给 max,直到全部比较完成。

展开阅读全文
相关资源
猜你喜欢
  • ETSI TR 102 055-2005 Telecommunications and Internet converged Services and Protocols for Advanced Networking (TISPAN) ENUM scenarios for user and infrastructure ENUM (Version 1 1 .pdf ETSI TR 102 055-2005 Telecommunications and Internet converged Services and Protocols for Advanced Networking (TISPAN) ENUM scenarios for user and infrastructure ENUM (Version 1 1 .pdf
  • ETSI TR 102 055-2005 Telecommunications and Internet converged Services and Protocols for Advanced Networking (TISPAN) ENUM scenarios for user and infrastructure ENUM (Version 1 1 _1.pdf ETSI TR 102 055-2005 Telecommunications and Internet converged Services and Protocols for Advanced Networking (TISPAN) ENUM scenarios for user and infrastructure ENUM (Version 1 1 _1.pdf
  • ETSI TR 102 058-2004 Satellite Earth Stations and Systems (SES) Satellite Component of UMTS IMT-2000 Evaluation of the W-CDMA UTRA FDD as a Satellite Radio Interface (V1 1 1)《卫星地面站.pdf ETSI TR 102 058-2004 Satellite Earth Stations and Systems (SES) Satellite Component of UMTS IMT-2000 Evaluation of the W-CDMA UTRA FDD as a Satellite Radio Interface (V1 1 1)《卫星地面站.pdf
  • ETSI TR 102 058-2004 Satellite Earth Stations and Systems (SES) Satellite Component of UMTS IMT-2000 Evaluation of the W-CDMA UTRA FDD as a Satellite Radio Interface (V1 1 1)《卫星地面站_1.pdf ETSI TR 102 058-2004 Satellite Earth Stations and Systems (SES) Satellite Component of UMTS IMT-2000 Evaluation of the W-CDMA UTRA FDD as a Satellite Radio Interface (V1 1 1)《卫星地面站_1.pdf
  • ETSI TR 102 061-2004 Satellite Earth Stations and Systems (SES) Satellite component of UMTS IMT 2000 Detailed analysis of the packet mode for the SW-CDMA (Family A) (V1 1 1  Includ.pdf ETSI TR 102 061-2004 Satellite Earth Stations and Systems (SES) Satellite component of UMTS IMT 2000 Detailed analysis of the packet mode for the SW-CDMA (Family A) (V1 1 1 Includ.pdf
  • ETSI TR 102 061-2004 Satellite Earth Stations and Systems (SES) Satellite component of UMTS IMT 2000 Detailed analysis of the packet mode for the SW-CDMA (Family A) (V1 1 1  Includ_1.pdf ETSI TR 102 061-2004 Satellite Earth Stations and Systems (SES) Satellite component of UMTS IMT 2000 Detailed analysis of the packet mode for the SW-CDMA (Family A) (V1 1 1 Includ_1.pdf
  • ETSI TR 102 068-2002 Human Factors (HF) Requirements for Assistive Technology Devices in ICT (V1 1 3)《人为因素(HF) ICT中的辅助技术设备要求(版本1 1 2)》.pdf ETSI TR 102 068-2002 Human Factors (HF) Requirements for Assistive Technology Devices in ICT (V1 1 3)《人为因素(HF) ICT中的辅助技术设备要求(版本1 1 2)》.pdf
  • ETSI TR 102 069-2002 Electromagnetic Compatibility and Radio Spectrum Matters (ERM) Technical Teport on the Operation of DSSS Transpoonders in the Band 865 MHz to 868 MHz with Poll.pdf ETSI TR 102 069-2002 Electromagnetic Compatibility and Radio Spectrum Matters (ERM) Technical Teport on the Operation of DSSS Transpoonders in the Band 865 MHz to 868 MHz with Poll.pdf
  • ETSI TR 102 069-2002 Electromagnetic Compatibility and Radio Spectrum Matters (ERM) Technical Teport on the Operation of DSSS Transpoonders in the Band 865 MHz to 868 MHz with Poll_1.pdf ETSI TR 102 069-2002 Electromagnetic Compatibility and Radio Spectrum Matters (ERM) Technical Teport on the Operation of DSSS Transpoonders in the Band 865 MHz to 868 MHz with Poll_1.pdf
  • 相关搜索
    资源标签

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

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