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

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

国家三级(网络技术)机试-试卷 60 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 60 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义字符变量 ch 和无符号整型变量 i、j、k。 对字符二维数组 xx,在第一层 for循环中,变量 i 从 0 开始,依次递增直到其值等于 maxline,实现对文章每行的扫描,在第二层 for 循环中,变量 j 从 0 开始,依次递增直到其值等于 strlen(xxi),即第 i 行的长度。在第三层循环语句中,变量 k 从 j 开始,依次递增直到其值等于 strlen(xxi),对每一行中的数组元素 xxij、xxik按照它们的 ASCII 码值的大小进行比较,如果 xxij的 ASCII 码小于 xxik的 ASCII 码,则两者交换,实现整篇文章中的字符按 ASCII 码值从大到小的顺序进行排序。

展开阅读全文
相关资源
猜你喜欢
  • EN 1400-2013 en Child use and care articles - Soothers for babies and young children - Safety requirements and test methods (Incorporates Amendment A1 2014)《儿童用保育品 婴儿和儿童用橡胶奶嘴 安全性要求.pdf EN 1400-2013 en Child use and care articles - Soothers for babies and young children - Safety requirements and test methods (Incorporates Amendment A1 2014)《儿童用保育品 婴儿和儿童用橡胶奶嘴 安全性要求.pdf
  • EN 1401-1-2009 en Plastics piping systems for non-pressure underground drainage and sewerage - Unplasticized poly(vinyl chloride) (PVC-U) - Part 1 Specifications for pipes fittings.pdf EN 1401-1-2009 en Plastics piping systems for non-pressure underground drainage and sewerage - Unplasticized poly(vinyl chloride) (PVC-U) - Part 1 Specifications for pipes fittings.pdf
  • EN 14010-2003 en Safety of machinery - Equipment for power driven parking of motor vehicles - Safety and EMC requirements for design manufacturing erection and commissioning stages.pdf EN 14010-2003 en Safety of machinery - Equipment for power driven parking of motor vehicles - Safety and EMC requirements for design manufacturing erection and commissioning stages.pdf
  • EN 14011-2003 en Water quality - Sampling of fish with electricity《水质 用电捕鱼取样》.pdf EN 14011-2003 en Water quality - Sampling of fish with electricity《水质 用电捕鱼取样》.pdf
  • EN 14012-2008 en Postal services - Quality of service - Complaints handling principles《邮政服务 服务质量 投诉处理原则》.pdf EN 14012-2008 en Postal services - Quality of service - Complaints handling principles《邮政服务 服务质量 投诉处理原则》.pdf
  • EN 14015-2004 en Specification for the design and manufacture of site built vertical cylindrical flat-bottomed above ground welded steel tanks for the storage of liquids at ambient.pdf EN 14015-2004 en Specification for the design and manufacture of site built vertical cylindrical flat-bottomed above ground welded steel tanks for the storage of liquids at ambient.pdf
  • EN 14016-1-2004 en Binders for magnesite screeds Caustic magnesia and magnesium chloride Part 1 Definitions requirements《菱镁找平层用粘合剂 苛性镁和氯化镁 第1部分 定义 要求》.pdf EN 14016-1-2004 en Binders for magnesite screeds Caustic magnesia and magnesium chloride Part 1 Definitions requirements《菱镁找平层用粘合剂 苛性镁和氯化镁 第1部分 定义 要求》.pdf
  • EN 14016-2-2004 en Binders for magnesite screeds Caustic magnesia and magnesium chloride Part 2 Test Methods《碳酸镁片胶结剂 苛性氧化镁和氯化镁 第2部分 试验方法》.pdf EN 14016-2-2004 en Binders for magnesite screeds Caustic magnesia and magnesium chloride Part 2 Test Methods《碳酸镁片胶结剂 苛性氧化镁和氯化镁 第2部分 试验方法》.pdf
  • EN 14017-2005 en Agricultural and forestry machinery - Solid fertilizer distributors - Safety (Incorporates Amendment A2 2009)《农业和林业机械 固体粪肥播撒机 安全 包含修改件A2-2009》.pdf EN 14017-2005 en Agricultural and forestry machinery - Solid fertilizer distributors - Safety (Incorporates Amendment A2 2009)《农业和林业机械 固体粪肥播撒机 安全 包含修改件A2-2009》.pdf
  • 相关搜索

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

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