【计算机类职业资格】国家三级(网络技术)机试-试卷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中。

展开阅读全文
相关资源
猜你喜欢
  • ITU-T D 211 SUPP 1 SPANISH-2010 International accounting for the use of the signal transfer point and or signalling point for relay in Signalling System No 7 Supplement 1 C GuideliSMS).pdf ITU-T D 211 SUPP 1 SPANISH-2010 International accounting for the use of the signal transfer point and or signalling point for relay in Signalling System No 7 Supplement 1 C GuideliSMS).pdf
  • ITU-T D 211 SUPP 1-2010 International accounting for the use of the signal transfer point and or signalling point for relay in Signalling System No 7 Supplement 1 C Guidelines for erco.pdf ITU-T D 211 SUPP 1-2010 International accounting for the use of the signal transfer point and or signalling point for relay in Signalling System No 7 Supplement 1 C Guidelines for erco.pdf
  • ITU-T D 211-1998 International Accounting for the Use of the Signal Transfer Point and or Signalling Point for Relay in Signalling System No 7 - Series D General Tariff Principles unt.pdf ITU-T D 211-1998 International Accounting for the Use of the Signal Transfer Point and or Signalling Point for Relay in Signalling System No 7 - Series D General Tariff Principles unt.pdf
  • ITU-T D 212 FRENCH-1996 Charging and accounting principles for the use of Signalling System No 7《利用NO 7信令系统的计费和结算原则 系列D 通用资费原则 由综合业务数字网(ISDN)提供的国际电信业务的计费和结算原则》.pdf ITU-T D 212 FRENCH-1996 Charging and accounting principles for the use of Signalling System No 7《利用NO 7信令系统的计费和结算原则 系列D 通用资费原则 由综合业务数字网(ISDN)提供的国际电信业务的计费和结算原则》.pdf
  • ITU-T D 212 SPANISH-1996 Charging and accounting principles for the use of Signalling System No 7《利用NO 7信令系统的计费和结算原则 系列D 通用资费原则 由综合业务数字网(ISDN)提供的国际电信业务的计费和结算原则》.pdf ITU-T D 212 SPANISH-1996 Charging and accounting principles for the use of Signalling System No 7《利用NO 7信令系统的计费和结算原则 系列D 通用资费原则 由综合业务数字网(ISDN)提供的国际电信业务的计费和结算原则》.pdf
  • ITU-T D 212-1996 Charging and Accounting Principles for the Use of Signalling System No 7 - Series D General Tariff Principles General Tariff Principles - Charging and Accounting P Se.pdf ITU-T D 212-1996 Charging and Accounting Principles for the Use of Signalling System No 7 - Series D General Tariff Principles General Tariff Principles - Charging and Accounting P Se.pdf
  • ITU-T D 220 FRENCH-1991 CHARGING AND ACCOUNTING PRINCIPLES TO BE APPLIED TO INTERNATIONAL CIRCUIT-MODE DEMAND BEARER SERVICES PROVIDED OVER THE INTEGRATED SERVICES DIGITAL NETWORK .pdf ITU-T D 220 FRENCH-1991 CHARGING AND ACCOUNTING PRINCIPLES TO BE APPLIED TO INTERNATIONAL CIRCUIT-MODE DEMAND BEARER SERVICES PROVIDED OVER THE INTEGRATED SERVICES DIGITAL NETWORK .pdf
  • ITU-T D 220 SPANISH-1991 CHARGING AND ACCOUNTING PRINCIPLES TO BE APPLIED TO INTERNATIONAL CIRCUIT-MODE DEMAND BEARER SERVICES PROVIDED OVER THE INTEGRATED SERVICES DIGITAL NETWORK.pdf ITU-T D 220 SPANISH-1991 CHARGING AND ACCOUNTING PRINCIPLES TO BE APPLIED TO INTERNATIONAL CIRCUIT-MODE DEMAND BEARER SERVICES PROVIDED OVER THE INTEGRATED SERVICES DIGITAL NETWORK.pdf
  • ITU-T D 220-1991 Charging and Accounting Principles to Be Applied to International Circuit-Mode Demand Bearer Services Provided over the Integrated Services Digital Network (ISDN) .pdf ITU-T D 220-1991 Charging and Accounting Principles to Be Applied to International Circuit-Mode Demand Bearer Services Provided over the Integrated Services Digital Network (ISDN) .pdf
  • 相关搜索

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

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