[计算机类试卷]国家三级(网络技术)机试模拟试卷124及答案与解析.doc

上传人:eventdump275 文档编号:495627 上传时间:2018-11-28 格式:DOC 页数:5 大小:165KB
下载 相关 举报
[计算机类试卷]国家三级(网络技术)机试模拟试卷124及答案与解析.doc_第1页
第1页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷124及答案与解析.doc_第2页
第2页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷124及答案与解析.doc_第3页
第3页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷124及答案与解析.doc_第4页
第4页 / 共5页
[计算机类试卷]国家三级(网络技术)机试模拟试卷124及答案与解析.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

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

展开阅读全文
相关资源
猜你喜欢
  • BS PD CLC TR 62125-2008 Environmental nstatement specific to nTC 20 — Electric cables《针对IEC TC 20的环境报告 电缆》.pdf BS PD CLC TR 62125-2008 Environmental nstatement specific to nTC 20 — Electric cables《针对IEC TC 20的环境报告 电缆》.pdf
  • BS PD CLC TR 62271-208-2010 High-voltage switchgear nand controlgear nPart 208 Methods to quantify the steady nstate power-frequency electromagnetic nfields generated by .pdf BS PD CLC TR 62271-208-2010 High-voltage switchgear nand controlgear nPart 208 Methods to quantify the steady nstate power-frequency electromagnetic nfields generated by .pdf
  • BS PD CLC TR 62453-41-2009 2500 Field device tool (FDT) interface nspecification — nPart 41 Object model integration profile — nCommon object model《场器件工具接口规范(FDT) 第41部分 对象模型综合剖面.pdf BS PD CLC TR 62453-41-2009 2500 Field device tool (FDT) interface nspecification — nPart 41 Object model integration profile — nCommon object model《场器件工具接口规范(FDT) 第41部分 对象模型综合剖面.pdf
  • BS PD CLC TR 62453-501-2009 7500 Field device tool (FDT) interface nspecification — nPart 501 Communication implementation for ncommon object model — IEC 61784 CPF 1《菲尔德设计工具(FDT).pdf BS PD CLC TR 62453-501-2009 7500 Field device tool (FDT) interface nspecification — nPart 501 Communication implementation for ncommon object model — IEC 61784 CPF 1《菲尔德设计工具(FDT).pdf
  • BS PD CLC TR 62453-502-2009 2500 Field device tool (FDT) interface nspecification — nPart 502 Communication implementation for ncommon object model — IEC 61784 CPF 2《现场设备工具(FDT)接.pdf BS PD CLC TR 62453-502-2009 2500 Field device tool (FDT) interface nspecification — nPart 502 Communication implementation for ncommon object model — IEC 61784 CPF 2《现场设备工具(FDT)接.pdf
  • BS PD CLC TR 62453-503-1-2009 1875 Field device tool (FDT) interface nspecification — nPart 503-1 Communication implementation for common object model — IEC 61784 CP 3 1 and CP 3.pdf BS PD CLC TR 62453-503-1-2009 1875 Field device tool (FDT) interface nspecification — nPart 503-1 Communication implementation for common object model — IEC 61784 CP 3 1 and CP 3.pdf
  • BS PD CLC TR 62453-503-2-2009 1875 Field device tool (FDT) interface nspecification — nPart 503-2 Communication implementation for ncommon object model — IEC 61784 CP 3 4 CP 3 5 .pdf BS PD CLC TR 62453-503-2-2009 1875 Field device tool (FDT) interface nspecification — nPart 503-2 Communication implementation for ncommon object model — IEC 61784 CP 3 4 CP 3 5 .pdf
  • BS PD CLC TR 62453-506-2009 1250 Field device tool (FDT) interface nspecification — nPart 506 Communication implementation for ncommon object model — IEC 61784 CPF 6《菲尔德设计工具(FDT).pdf BS PD CLC TR 62453-506-2009 1250 Field device tool (FDT) interface nspecification — nPart 506 Communication implementation for ncommon object model — IEC 61784 CPF 6《菲尔德设计工具(FDT).pdf
  • BS PD CLC TR 62453-509-2009 9375 Field device tool (FDT) interface nspecification — nPart 509 Communication implementation for ncommon object model – IEC 61784 CPF 9《菲尔德设计工具(FDT).pdf BS PD CLC TR 62453-509-2009 9375 Field device tool (FDT) interface nspecification — nPart 509 Communication implementation for ncommon object model – IEC 61784 CPF 9《菲尔德设计工具(FDT).pdf
  • 相关搜索

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

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