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

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

国家三级(网络技术)机试-试卷 73 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 73 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义两个循环变量循环 i、j 和一个用于数据交换的整型变量 m。 然后通过两个for 循环对数组 aa中的两个相邻元素按照其后三位值的大小进行从小到大的排序,本题中已给出所有的整数都是四位数,因此,可以通过 aai1000 或 aaj1 000 计算得到当前数组元素的后三位值,然后再进行比较,如果两个数需要转换位置,可通过中间变量 m 进行转换。 上一步骤是两个元素后三位不相同的情况,根据题意,需要再增加一个 else if 语句判断两个相邻元素的后三位数一样的情况,如果相同,则需要继续判断两个四位数的大小,并按从大小的顺序排序。 最后,通过一个 for 循环依次读取 aai数组中前 10 个元素并保存到数组 bbi中。

展开阅读全文
相关资源
猜你喜欢
  • ASTM A340-2016 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《有关磁性试验的符号和定义的标准术语》.pdf ASTM A340-2016 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《有关磁性试验的符号和定义的标准术语》.pdf
  • ASTM A340-2016e1 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《磁性测试相关符号和定义的标准术语》.pdf ASTM A340-2016e1 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《磁性测试相关符号和定义的标准术语》.pdf
  • ASTM A340-2017 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《磁性测试相关符号和定义的标准术语》.pdf ASTM A340-2017 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《磁性测试相关符号和定义的标准术语》.pdf
  • ASTM A340-2017a Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《与磁性试验有关的符号和定义的标准术语》.pdf ASTM A340-2017a Standard Terminology of Symbols and Definitions Relating to Magnetic Testing《与磁性试验有关的符号和定义的标准术语》.pdf
  • ASTM A340-2018 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing.pdf ASTM A340-2018 Standard Terminology of Symbols and Definitions Relating to Magnetic Testing.pdf
  • ASTM A341 A341M-2000(2005) Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods.pdf ASTM A341 A341M-2000(2005) Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods.pdf
  • ASTM A341 A341M-2000(2005)e1 Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods《用直流磁导计和冲击试验法测定材料的直流磁性能的标.pdf ASTM A341 A341M-2000(2005)e1 Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods《用直流磁导计和冲击试验法测定材料的直流磁性能的标.pdf
  • ASTM A341 A341M-2000(2011) Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods《以直流磁导计和冲击强力试验方法测定材料直流磁性能的标.pdf ASTM A341 A341M-2000(2011) Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods《以直流磁导计和冲击强力试验方法测定材料直流磁性能的标.pdf
  • ASTM A341 A341M-2000(2011)e1 Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods《使用直流磁导计和冲击试验方法的材料直流磁特性的标.pdf ASTM A341 A341M-2000(2011)e1 Standard Test Method for Direct Current Magnetic Properties of Materials Using D-C Permeameters and the Ballistic Test Methods《使用直流磁导计和冲击试验方法的材料直流磁特性的标.pdf
  • 相关搜索

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

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