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

展开阅读全文
相关资源
猜你喜欢
  • DIN 7795-2015 Measuring compression set of elastomers in hot water《弹性体在热水中压缩形变的测量》.pdf DIN 7795-2015 Measuring compression set of elastomers in hot water《弹性体在热水中压缩形变的测量》.pdf
  • DIN 7798-1-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road diagonal ply tyres with a nominal aspect ratio exceeding 90%《公路和非公路用运土机.pdf DIN 7798-1-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road diagonal ply tyres with a nominal aspect ratio exceeding 90%《公路和非公路用运土机.pdf
  • DIN 7798-2-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road wide base diagonal ply tyres《公路和非公路用运土机械、翻斗车和专用车辆轮胎 第2部分 对角线花纹宽轮胎》.pdf DIN 7798-2-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road wide base diagonal ply tyres《公路和非公路用运土机械、翻斗车和专用车辆轮胎 第2部分 对角线花纹宽轮胎》.pdf
  • DIN 7798-3-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road radial tyres with a nominal aspect ratio exceeding 90 %《在公路和非公路上使用的土方机械.pdf DIN 7798-3-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road radial tyres with a nominal aspect ratio exceeding 90 %《在公路和非公路上使用的土方机械.pdf
  • DIN 7798-4-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road wide base radial tyres《公路和非公路用运土机械、翻斗车和专用车辆轮胎 第4部分 径向结构宽轮胎》.pdf DIN 7798-4-1988 Tyres for earth moving machinery dumpers and special vehicles in service on and off the road wide base radial tyres《公路和非公路用运土机械、翻斗车和专用车辆轮胎 第4部分 径向结构宽轮胎》.pdf
  • DIN 7799-1-1981 Tyres for road making machines earth moving machines and road graders regular sizes in diagonal construction《筑路机械、土方机械和平路机用轮胎 斜线花纹的标准规格》.pdf DIN 7799-1-1981 Tyres for road making machines earth moving machines and road graders regular sizes in diagonal construction《筑路机械、土方机械和平路机用轮胎 斜线花纹的标准规格》.pdf
  • DIN 78-2013 Protrusions of bolt ends《螺栓尾部的凸度》.pdf DIN 78-2013 Protrusions of bolt ends《螺栓尾部的凸度》.pdf
  • DIN 780-1-1977 Series of Modules for Gears Modules for Spur Gears《齿轮的模数系列 直齿圆柱齿轮的模数》.pdf DIN 780-1-1977 Series of Modules for Gears Modules for Spur Gears《齿轮的模数系列 直齿圆柱齿轮的模数》.pdf
  • DIN 780-2-1977 Series of modules for gears Modules for cylindrical worm gear transmissions《齿轮用模数系列 第2部分 圆柱蜗杆传动装置的模数》.pdf DIN 780-2-1977 Series of modules for gears Modules for cylindrical worm gear transmissions《齿轮用模数系列 第2部分 圆柱蜗杆传动装置的模数》.pdf
  • 相关搜索

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

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