【计算机类职业资格】计算机二级(C++)上机考试9及答案解析.doc

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

1、计算机二级(C+)上机考试 9 及答案解析(总分:-3.00,做题时间:90 分钟)1.改错题 使用 VC6 打开考生文件夹下的工程 test15_1,此工程包含一个源程序文件 test15_1.cpp,但该程序运行有问题,请改正程序中的错误,使该程序的输出结果如下: My object has member 7 源程序文件 test15_1.cpp 清单如下: #include class MyClass public: MyClass(int mem)member=mem; MyClass() int GetAge() const return member; private: int m

2、ember; ; /* found */ void main() int mem=7; /* found */ MyClass myObj=MakeObject(mem); coutenglish; coutcomputer; void Student:computesum() total=english+computer; coutenglish; coutcomputer; void Student:computesum() total=english+computer; coutcode; (3) int tempcode,tempsum; tempcode=(*A0).getcode(); )解析:本题是对 C+程序设计的综合考查,其设计类的成员及成员函数的定义与调用,数据的输入输出,for 循环语句,if 条件判断语句等多个知识点,注意(3)中指针数组的使用,指针数组是一组指针,每一个成员都按照指针的操作规则,但是整个访问规则仍然使用数组下标方式,如 A0指的是第一个指针,而* A0是取出第一个指针指向的内容。

展开阅读全文
相关资源
猜你喜欢
  • DIN EN ISO 787-2-1995 General methods of test for pigments and extenders - Part 2 Determination of matter volatile at 105 C (ISO 787-2 1981) German version EN ISO 787-2 1995《颜料和稀释剂.pdf DIN EN ISO 787-2-1995 General methods of test for pigments and extenders - Part 2 Determination of matter volatile at 105 C (ISO 787-2 1981) German version EN ISO 787-2 1995《颜料和稀释剂.pdf
  • DIN EN ISO 787-23-1995 General methods of test for pigments and extenders - Part 23 Determination of density (using a centrifuge to remove entrained air) (ISO 787-23 1979) German v.pdf DIN EN ISO 787-23-1995 General methods of test for pigments and extenders - Part 23 Determination of density (using a centrifuge to remove entrained air) (ISO 787-23 1979) German v.pdf
  • DIN EN ISO 787-24-1995 General methods of test for pigments and extenders - Part 24 Determination of relative tinting strength of coloured pigments and relative scattering power of.pdf DIN EN ISO 787-24-1995 General methods of test for pigments and extenders - Part 24 Determination of relative tinting strength of coloured pigments and relative scattering power of.pdf
  • DIN EN ISO 787-25-2007 General methods of test for pigments and extenders - Part 25 Comparison of the colour in full-shade systems of white black and coloured pigments - Colorimetr.pdf DIN EN ISO 787-25-2007 General methods of test for pigments and extenders - Part 25 Comparison of the colour in full-shade systems of white black and coloured pigments - Colorimetr.pdf
  • DIN EN ISO 787-3-2001 General methods of test for pigments and extenders - Part 3 Determination of matter soluble in water Hot extraction method (ISO 787-3 2000) German version EN .pdf DIN EN ISO 787-3-2001 General methods of test for pigments and extenders - Part 3 Determination of matter soluble in water Hot extraction method (ISO 787-3 2000) German version EN .pdf
  • DIN EN ISO 787-5-1995 General methods of test for pigments and extenders - Part 5 Determination of oil absorption value (ISO 787-5 1980) German version EN ISO 787-5 1995《颜料和体制颜料的通用.pdf DIN EN ISO 787-5-1995 General methods of test for pigments and extenders - Part 5 Determination of oil absorption value (ISO 787-5 1980) German version EN ISO 787-5 1995《颜料和体制颜料的通用.pdf
  • DIN EN ISO 787-7-2010 General methods of test for pigments and extenders - Part 7 Determination of residue on sieve - Water method - Manual procedure (ISO 787-7 2009) German versio.pdf DIN EN ISO 787-7-2010 General methods of test for pigments and extenders - Part 7 Determination of residue on sieve - Water method - Manual procedure (ISO 787-7 2009) German versio.pdf
  • DIN EN ISO 787-8-2001 General methods of test for pigments and extenders - Part 8 Determination of matter soluble in water Cold extraction method (ISO 787-8 2000) German version EN.pdf DIN EN ISO 787-8-2001 General methods of test for pigments and extenders - Part 8 Determination of matter soluble in water Cold extraction method (ISO 787-8 2000) German version EN.pdf
  • DIN EN ISO 787-9-1995 General methods of test for pigments and extenders - Part 9 Determination of pH value of an aqueous suspension (ISO 787-9 1981) German version EN ISO 787-9 19.pdf DIN EN ISO 787-9-1995 General methods of test for pigments and extenders - Part 9 Determination of pH value of an aqueous suspension (ISO 787-9 1981) German version EN ISO 787-9 19.pdf
  • 相关搜索

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

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