【计算机类职业资格】国家三级(网络技术)机试-试卷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 码值从大到小的顺序进行排序。

展开阅读全文
相关资源
猜你喜欢
  • SIS SS IEC 534-1-1983 Industrial-process measurement and control  Industrial-process control valves  General considerations《工业过程测控 工业过程控制阀 总则》.pdf SIS SS IEC 534-1-1983 Industrial-process measurement and control Industrial-process control valves General considerations《工业过程测控 工业过程控制阀 总则》.pdf
  • SIS SS IEC 534-2-1983 Industrial-process measurement and control  Industrial-process control valves  Sizing equations for incompressible fluid flow《工业过程测控 工业过程控制阀 不可压缩流体尺寸方程》.pdf SIS SS IEC 534-2-1983 Industrial-process measurement and control Industrial-process control valves Sizing equations for incompressible fluid flow《工业过程测控 工业过程控制阀 不可压缩流体尺寸方程》.pdf
  • SIS SS IEC 534-2-2-1983 Industrial-process measurement and control  Industrial-process control valves  Sizing equations for compressible fluid flow《工业过程测控 工业过程控制阀 可压缩流体尺寸方程》.pdf SIS SS IEC 534-2-2-1983 Industrial-process measurement and control Industrial-process control valves Sizing equations for compressible fluid flow《工业过程测控 工业过程控制阀 可压缩流体尺寸方程》.pdf
  • SIS SS IEC 534-3-1983 Industrial-process measurement and control  Industrial-process control valves  Face-to-face dimensions for flanged two-way globe-type control valves《工业过程测控 工业.pdf SIS SS IEC 534-3-1983 Industrial-process measurement and control Industrial-process control valves Face-to-face dimensions for flanged two-way globe-type control valves《工业过程测控 工业.pdf
  • SIS SS IEC 534-4-1988 Industrial-process control valves  Inspection and routine testing《工业过程控制阀 检查及日常检验》.pdf SIS SS IEC 534-4-1988 Industrial-process control valves Inspection and routine testing《工业过程控制阀 检查及日常检验》.pdf
  • SIS SS IEC 534-5-1984 I-ndustrial-process control valves  Marking《工业过程控制电子管标识》.pdf SIS SS IEC 534-5-1984 I-ndustrial-process control valves Marking《工业过程控制电子管标识》.pdf
  • SIS SS IEC 538-1982 Cables for telecommunication - Polyethylene insulation and sheath - Testing《电信电缆 聚乙烯绝缘及铠装测试》.pdf SIS SS IEC 538-1982 Cables for telecommunication - Polyethylene insulation and sheath - Testing《电信电缆 聚乙烯绝缘及铠装测试》.pdf
  • SIS SS IEC 540-1985 Power cables and cables for house wiring - Test methods for insulations and sheaths of elastomeric and thermoplastic compounds《电力电缆及住宅连接电缆,弹体热塑性复合绝缘剂的绝缘及铠装试验方法》.pdf SIS SS IEC 540-1985 Power cables and cables for house wiring - Test methods for insulations and sheaths of elastomeric and thermoplastic compounds《电力电缆及住宅连接电缆,弹体热塑性复合绝缘剂的绝缘及铠装试验方法》.pdf
  • SIS SS IEC 542-1982 Power transformers  Application guide for on-load tap-changers《电力变压器 带负载抽头转换开关应用指南》.pdf SIS SS IEC 542-1982 Power transformers Application guide for on-load tap-changers《电力变压器 带负载抽头转换开关应用指南》.pdf
  • 相关搜索

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

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