【计算机类职业资格】国家三级(网络技术)机试-试卷18及答案解析.doc

上传人:figureissue185 文档编号:1331052 上传时间:2019-10-17 格式:DOC 页数:2 大小:30KB
下载 相关 举报
【计算机类职业资格】国家三级(网络技术)机试-试卷18及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】国家三级(网络技术)机试-试卷18及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家三级(网络技术)机试-试卷 18 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 18 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义两个循环变量 i、j;一个计数变量 count;一个用于中间转换数据的结构体变量cc。 建立一个 for 循环,指定第一个 for 循环的循环变量 i 从 0 开始,到 200 时结束,每循环一次,变量 i 的值加 1。 在循环体中依次判断

2、每行数据中,如果 aai的第二个数大于第一个数加第三个数之和,则把 aai复制到 bbcount中,同时数组下标变量 count 加 1。 将所有满足条件的记录筛选保存到数组 bb后,再通过两个 for 循环对数组 bb中记录进行排序。第一个 for 循环的循环变量 i 的初值为0,当等于数组计数变量 count 的值减 1 时停止循环,每循环一次,i 的值加 1;第二个 for 循环的循环变量 j 的初值等于 i+1,当等于数组计数变量 count 的值时停止循环,每循环一次,j 的值加 1;每次进行比较时,如果第 i 行的第二个数加第三个之和小于其后面第 j 行的第二个数加第三个之和,将执行 if 条件语句后面花括号中的命令,花括号中 3 条命令的功能就是根据题目要求按每行数据中第二个数加第三个之和从大到小排序。 最后将计数函数 count 返回。

展开阅读全文
相关资源
猜你喜欢
  • NEN 11150-1994 Alkaline secondary cells and batteries Sealed nickel-cadmium rechargeable monobloc batteries in button cell design (IEC 1150 1992+C1 1992)《IEC 1150-1992 + C1-1992 碱性.pdf NEN 11150-1994 Alkaline secondary cells and batteries Sealed nickel-cadmium rechargeable monobloc batteries in button cell design (IEC 1150 1992+C1 1992)《IEC 1150-1992 + C1-1992 碱性.pdf
  • NEN 11157-1993 Requirements for the declaration of the acoustic output of medical diagnostic ultrasonic equipment (IEC 1157 1992)《IEC 1157-1992 医疗诊断用超波设备的声输出说明要求》.pdf NEN 11157-1993 Requirements for the declaration of the acoustic output of medical diagnostic ultrasonic equipment (IEC 1157 1992)《IEC 1157-1992 医疗诊断用超波设备的声输出说明要求》.pdf
  • NEN 11161-1993 Ultrasonic power measurement in liquids in the frequency range 0 5 MHz to 25 MHz (IEC 1161 1992)《IEC 1161-1992 液体中频率范围为0 5MHz-25MHz超声波功率测量规范》.pdf NEN 11161-1993 Ultrasonic power measurement in liquids in the frequency range 0 5 MHz to 25 MHz (IEC 1161 1992)《IEC 1161-1992 液体中频率范围为0 5MHz-25MHz超声波功率测量规范》.pdf
  • NEN 11179-1994 Helican-scan digital composite video cassette recording system using 19 mm magnetic tape format D2 (NTSC PAL PAL-M) (IEC 1179 1993)《IEC 1179-1993 使用19mm磁带D2格式(NTSC,P.pdf NEN 11179-1994 Helican-scan digital composite video cassette recording system using 19 mm magnetic tape format D2 (NTSC PAL PAL-M) (IEC 1179 1993)《IEC 1179-1993 使用19mm磁带D2格式(NTSC,P.pdf
  • NEN 11181-1993 Impregnated insulating materials Application of dissolved gas analysis (DGA) to factory tests on electrical equipment (IEC 1181 1993)《IEC 1181-1993 浸渍绝缘材料 工厂试验用电子设备溶.pdf NEN 11181-1993 Impregnated insulating materials Application of dissolved gas analysis (DGA) to factory tests on electrical equipment (IEC 1181 1993)《IEC 1181-1993 浸渍绝缘材料 工厂试验用电子设备溶.pdf
  • NEN 11198-1994 Mineral insulating oils Methods for the determination of the 2-furfural content and related compounds(IEC 1198 1993)《绝缘矿物油 糠醛和有关化合物的测定方法(IEC 1198-1993)》.pdf NEN 11198-1994 Mineral insulating oils Methods for the determination of the 2-furfural content and related compounds(IEC 1198 1993)《绝缘矿物油 糠醛和有关化合物的测定方法(IEC 1198-1993)》.pdf
  • NEN 11205-1994 Ultrasonics Dental descaler systems Measurement and declaration of the output characteristics(IEC 1205 1993)《IEC 1205-1993 超声学 牙齿除垢系统 输出特性的测量和标示》.pdf NEN 11205-1994 Ultrasonics Dental descaler systems Measurement and declaration of the output characteristics(IEC 1205 1993)《IEC 1205-1993 超声学 牙齿除垢系统 输出特性的测量和标示》.pdf
  • NEN 1123-1971 Gasmeters with diaphragms types G16 G25 G40 G65 G100 and G160《膜式气量计,G16,G25,G40,G65,G100和G160型》.pdf NEN 1123-1971 Gasmeters with diaphragms types G16 G25 G40 G65 G100 and G160《膜式气量计,G16,G25,G40,G65,G100和G160型》.pdf
  • NEN 1131-1965 Brazingsolder 《黄铜钎料》.pdf NEN 1131-1965 Brazingsolder 《黄铜钎料》.pdf
  • 相关搜索

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

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