【计算机类职业资格】二级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

展开阅读全文
相关资源
猜你喜欢
  • NASA NACA-RM-A7H29-1948 High-speed aerodynamic characteristics of horn and overhang balances on a full-scale elevator《全比例电梯喇叭和突出部分平衡的高速空气动力特性》.pdf NASA NACA-RM-A7H29-1948 High-speed aerodynamic characteristics of horn and overhang balances on a full-scale elevator《全比例电梯喇叭和突出部分平衡的高速空气动力特性》.pdf
  • NASA NACA-RM-A7I30-1948 An experimental investigation of the design variables for NACA submerged duct entrances《NACA嵌入式导管进气道设计变量的实验研究》.pdf NASA NACA-RM-A7I30-1948 An experimental investigation of the design variables for NACA submerged duct entrances《NACA嵌入式导管进气道设计变量的实验研究》.pdf
  • NASA NACA-RM-A7J22-1948 High-speed aerodynamic characteristics of a model tail plane with modified NACA 65-010 sections and 0 degrees and 45 degrees sweepback《带有改装NACA 65-010剖面和0至4.pdf NASA NACA-RM-A7J22-1948 High-speed aerodynamic characteristics of a model tail plane with modified NACA 65-010 sections and 0 degrees and 45 degrees sweepback《带有改装NACA 65-010剖面和0至4.pdf
  • NASA NACA-RM-A7K03-1948 Low-speed investigation of a small triangular wing of aspect ratio 2 0 I  the effect of combination with a body revolution and height above a ground plane《展.pdf NASA NACA-RM-A7K03-1948 Low-speed investigation of a small triangular wing of aspect ratio 2 0 I the effect of combination with a body revolution and height above a ground plane《展.pdf
  • NASA NACA-RM-A7K24-1948 Wind-tunnel investigation of horizontal tails I - unswept and 35 degrees swept-back plan forms of aspect ratio 3《水平尾翼的风洞研究 I 展弦比为3的非后掠翼且后掠角为35的平面图》.pdf NASA NACA-RM-A7K24-1948 Wind-tunnel investigation of horizontal tails I - unswept and 35 degrees swept-back plan forms of aspect ratio 3《水平尾翼的风洞研究 I 展弦比为3的非后掠翼且后掠角为35的平面图》.pdf
  • NASA NACA-RM-A7K28-1948 High-speed stability and control characteristics of a fighter airplane model with a swept-back wing and tail《带有后掠翼和尾翼的战斗机模型的高速稳定性和控制特性》.pdf NASA NACA-RM-A7K28-1948 High-speed stability and control characteristics of a fighter airplane model with a swept-back wing and tail《带有后掠翼和尾翼的战斗机模型的高速稳定性和控制特性》.pdf
  • NASA NACA-RM-A7L02-1948 A summary and analysis of wind-tunnel data on the lift and hinge-moment characteristics of control surfaces up to a Mach number of 0 90《在马赫数为0 90时 操纵面的升力和铰链.pdf NASA NACA-RM-A7L02-1948 A summary and analysis of wind-tunnel data on the lift and hinge-moment characteristics of control surfaces up to a Mach number of 0 90《在马赫数为0 90时 操纵面的升力和铰链.pdf
  • NASA NACA-RM-A7L11-1948 Low-speed investigation of a small triangular wing of aspect ratio 2 0 II  flaps on flat-plate models《展弦比为2 0的小型三角形机翼的低速研究 II 平坦飞机模型的襟翼》.pdf NASA NACA-RM-A7L11-1948 Low-speed investigation of a small triangular wing of aspect ratio 2 0 II flaps on flat-plate models《展弦比为2 0的小型三角形机翼的低速研究 II 平坦飞机模型的襟翼》.pdf
  • NASA NACA-RM-A7L16-1948 A WIND-TUNNEL INVESTIGATION AT LOW SPEED OF VARIOUS LATERAL CONTROLS ON A 45 SWEPT-BACK WING《在各种横向控制低速下45后掠翼的风洞研究》.pdf NASA NACA-RM-A7L16-1948 A WIND-TUNNEL INVESTIGATION AT LOW SPEED OF VARIOUS LATERAL CONTROLS ON A 45 SWEPT-BACK WING《在各种横向控制低速下45后掠翼的风洞研究》.pdf
  • 相关搜索
    资源标签

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

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