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

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

1、国家三级(网络技术)机试-试卷 35 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 35 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义循环变量 i 和字符数组 before80、after80及字符指针变量 p。 在 for 循环语句中,循环变量 i 从 0 开始,依次递增直到其值等于 maxline,在循环体中,利用 while 循环语句一直执行如下的操作,调用库函数 st

2、rchr()定位字母 0 在字符串 xxi嘲中第一次出现的位置 p。如果 p 非空,说明在此字符串中找到了字母 o,对于 xxi有字母 0 的情况,从字符串 xxi的第 xxi+(pxxi+1)字符开始,直到字符的结尾,调用字符串拷贝函数 strcpy()把字母。后面的字符串拷贝到字符数组after80中,然后把*p 的值设置为 0,删除字母 0,调用字符串拷贝函数 strcpy()把字符串 xxi拷贝到字符数组 before80中,调用字符串拷贝函数 strcpy()把字符数组 after80中的值拷贝到 xxi,再调用字符串连接函数 strcat()把 xxi与 before80相连接,实现字母 o 前后字符串的互换。如果 p 为空,说明在 Xxi中没有字母 0,则退出 while 循环。进入下一行字符串的处理。

展开阅读全文
相关资源
猜你喜欢
  • ONORM ENV 1118-1994 Heat exchangers Refrigerant cooled liquid coolers Test procedures for establishing the performance《热交换器 冷却液制冷器 性能确定的试验程序》.pdf ONORM ENV 1118-1994 Heat exchangers Refrigerant cooled liquid coolers Test procedures for establishing the performance《热交换器 冷却液制冷器 性能确定的试验程序》.pdf
  • ONORM ENV 1148-1993 Heat exchangers Water to water heat exchangers for district heating Test procedures for establishing the performance data《热交换器 区域供暖用水循环热交换器 性能数据确定的试验程序》.pdf ONORM ENV 1148-1993 Heat exchangers Water to water heat exchangers for district heating Test procedures for establishing the performance data《热交换器 区域供暖用水循环热交换器 性能数据确定的试验程序》.pdf
  • ONORM ENV 1159-1-1993 Advanced technical ceramics - Ceramic composites -Thermophysical properties - Part 1 Determination of thermal expansion《先进的技术陶瓷 陶瓷复合物 热物理性能 第1部分:热膨胀的测定》.pdf ONORM ENV 1159-1-1993 Advanced technical ceramics - Ceramic composites -Thermophysical properties - Part 1 Determination of thermal expansion《先进的技术陶瓷 陶瓷复合物 热物理性能 第1部分:热膨胀的测定》.pdf
  • ONORM ENV 1159-2-1993 Advanced technical ceramics - Ceramic composites -Thermophysical properties - Part 2 Determination of thermal diffusivity《先进的技术陶瓷 陶瓷复合物 热物理性能 第2部分:热扩散率的测定》.pdf ONORM ENV 1159-2-1993 Advanced technical ceramics - Ceramic composites -Thermophysical properties - Part 2 Determination of thermal diffusivity《先进的技术陶瓷 陶瓷复合物 热物理性能 第2部分:热扩散率的测定》.pdf
  • ONORM ENV 1216-1994 Heat exchangers Forced circulation air-cooling and air-heating coils Test procedures for establishing the performance《热交换器 强制循环空气冷却和空气加热盘管 性能确定的试验程序》.pdf ONORM ENV 1216-1994 Heat exchangers Forced circulation air-cooling and air-heating coils Test procedures for establishing the performance《热交换器 强制循环空气冷却和空气加热盘管 性能确定的试验程序》.pdf
  • ONORM ENV 12289-1996 Advanced technical ceramics-Mechanical properties of ceramic composites at ambiant temperature-Determination of in-plane shear properties《先进的技术陶瓷 环境温度下陶瓷复合材料的机.pdf ONORM ENV 12289-1996 Advanced technical ceramics-Mechanical properties of ceramic composites at ambiant temperature-Determination of in-plane shear properties《先进的技术陶瓷 环境温度下陶瓷复合材料的机.pdf
  • ONORM ENV 12290-1996 Advanced technical ceramics-Mechanical properties of ceramic composites at high temperature under inert atmosphere-Determination of compression properties《先进的技.pdf ONORM ENV 12290-1996 Advanced technical ceramics-Mechanical properties of ceramic composites at high temperature under inert atmosphere-Determination of compression properties《先进的技.pdf
  • ONORM ENV 12291-1996 Advanced technical ceramics-Mechanical properties of ceramic composites at high temperature in air at atmosphere pressure-Determination of compression properti.pdf ONORM ENV 12291-1996 Advanced technical ceramics-Mechanical properties of ceramic composites at high temperature in air at atmosphere pressure-Determination of compression properti.pdf
  • ONORM ENV 1954-1996 Internal and extemal fault behaviour of safety related electronic parts of gas appliances《涉及安全性的燃气器具电子部件的内外故障特性》.pdf ONORM ENV 1954-1996 Internal and extemal fault behaviour of safety related electronic parts of gas appliances《涉及安全性的燃气器具电子部件的内外故障特性》.pdf
  • 相关搜索

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

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