【计算机类职业资格】三级信息管理技术机试-104及答案解析.doc

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

1、三级信息管理技术机试-104 及答案解析(总分:100.00,做题时间:90 分钟)一、上机题(总题数:1,分数:100.00)1.试题要求如图 10.4所示。(分数:100.00)_三级信息管理技术机试-104 答案解析(总分:100.00,做题时间:90 分钟)一、上机题(总题数:1,分数:100.00)1.试题要求如图 10.4所示。(分数:100.00)_正确答案:(void jsSort()int i, j, k, length, half;char temp;for(i=0; i20; i+)length=strlen(xxi);half=length/2;for(j=0; jha

2、lf-1; j+)for(k=j+1; khalf; k+)if(xxijxxik)temp=xxij;xxij=xxik;xxik=temp;If(length%2!=0) half=half+1;for(j=half; jlength-1; j+)for(k=j+1; klength; k+)if(xxijxxik)temp=xxij;xxij=xxik;xxik=temp;)解析:解析 此题的思路是先求出字符串数组中每一行的长度,然后先对前半部分进行降序排列,再对后半部分进行升序排列。注意,题目要求当字符串长度为奇数时,中间的字不参加排序,所以在对后半部分进行排序时要加一个对 length的奇偶判断。当 length为偶数时要从 length/2开始排序,当length为奇数时要从 length/2+1时开始排序。这里是用冒泡排序法进行排序的,用其他的排序方法亦可。

展开阅读全文
相关资源
猜你喜欢
  • BS S 150-1975 Specification for chromium-molybdenum-vanadium-niobium heat-resisting steel billets bars forgings and parts (930-1080 MPa) (Cr 10 5 Mo 0 6 V 0 2 Nb 0 3)《铬-钼-钒-铌-耐热钢坯、棒材、锻件及零件规范(930-.pdf BS S 150-1975 Specification for chromium-molybdenum-vanadium-niobium heat-resisting steel billets bars forgings and parts (930-1080 MPa) (Cr 10 5 Mo 0 6 V 0 2 Nb 0 3)《铬-钼-钒-铌-耐热钢坯、棒材、锻件及零件规范(930-.pdf
  • BS PD ISO IEC TR 20000-12-2016 Information technology Service management Guidance on the relationship between ISO IEC 20000-1 2011 and service management frameworks CMMI-SVC 《信息技术 .pdf BS PD ISO IEC TR 20000-12-2016 Information technology Service management Guidance on the relationship between ISO IEC 20000-1 2011 and service management frameworks CMMI-SVC 《信息技术 .pdf
  • BS PD ISO IEC TR 20007-2014 Information technology Cultural and linguistic interoperability Definitions and relationship between symbols icons animated icons pictograms characters .pdf BS PD ISO IEC TR 20007-2014 Information technology Cultural and linguistic interoperability Definitions and relationship between symbols icons animated icons pictograms characters .pdf
  • BS PD ISO IEC TR 29110-5-1-3-2017 Systems and software engineering Lifecycle profiles for Very Small Entities (VSEs) Software engineering Management and engineering guide Generic p.pdf BS PD ISO IEC TR 29110-5-1-3-2017 Systems and software engineering Lifecycle profiles for Very Small Entities (VSEs) Software engineering Management and engineering guide Generic p.pdf
  • BS PD ISO IEC TR 29110-5-6-1-2015 Systems and software engineering Lifecycle profiles for Very Small Entities (VSEs) Systems engineering Management and engineering guide Generic pr.pdf BS PD ISO IEC TR 29110-5-6-1-2015 Systems and software engineering Lifecycle profiles for Very Small Entities (VSEs) Systems engineering Management and engineering guide Generic pr.pdf
  • BS PD ISO IEC TR 29110-5-6-2-2014 Systems and software engineering Lifecycle profiles for Very Small Entities (VSEs) Systems engineering Management and engineering guide Generic pr.pdf BS PD ISO IEC TR 29110-5-6-2-2014 Systems and software engineering Lifecycle profiles for Very Small Entities (VSEs) Systems engineering Management and engineering guide Generic pr.pdf
  • BS PD ISO IEC TS 17021-5-2014 Conformity assessment Requirements for bodies providing audit and certification of management systems Competence requirements for auditing and certifi.pdf BS PD ISO IEC TS 17021-5-2014 Conformity assessment Requirements for bodies providing audit and certification of management systems Competence requirements for auditing and certifi.pdf
  • BS PD ISO IEC TS 17021-6-2014 Conformity assessment Requirements for bodies providing audit and certification of management systems Competence requirements for auditing and certifi.pdf BS PD ISO IEC TS 17021-6-2014 Conformity assessment Requirements for bodies providing audit and certification of management systems Competence requirements for auditing and certifi.pdf
  • BS PD ISO IEC TS 17021-7-2014 Conformity assessment Requirements for bodies providing audit and certification of management systems Competence requirements for auditing and certifi.pdf BS PD ISO IEC TS 17021-7-2014 Conformity assessment Requirements for bodies providing audit and certification of management systems Competence requirements for auditing and certifi.pdf
  • 相关搜索

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

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