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

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

国家三级(网络技术)机试-试卷 90 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 90 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:定义字符指针 p,q,并且 q 指向字符串 str。定义计数整型变量 cnt,设置其值等于 0。 在 while 循环中调用 C 语言的字符串库函数 strstr(),返回子字符串 substr 在字符串 q 第一次出现的位置,赋给变量 p。用 if 语句判断,如果 p 的值为空,则说明在字符串 str 没有找到子字符串,退出循环。否则,变量 cnt 加 1,再把 p 的值加 2(因为子字符串 substr 的长度为 2)赋给变量 q,执行下一次循环。直到字符串中不存在子字符串时,退出循环结束。 最后,返回子字符串 substr 在字符串 str 中出现的次数。

展开阅读全文
相关资源
猜你喜欢
  • ASTM E782-1995(2015) 4500 Standard Practice for Exposure of Cover Materials for Solar Collectors to Natural Weathering Under Conditions Simulating Operational Mode《条件模拟操作模式下太阳能集电器覆.pdf ASTM E782-1995(2015) 4500 Standard Practice for Exposure of Cover Materials for Solar Collectors to Natural Weathering Under Conditions Simulating Operational Mode《条件模拟操作模式下太阳能集电器覆.pdf
  • ASTM E783-2002 Standard Test Method for Field Measurement of Air Leakage Through Installed Exterior Windows and Doors《现场测量安装的外门窗漏气性的标准试验方法》.pdf ASTM E783-2002 Standard Test Method for Field Measurement of Air Leakage Through Installed Exterior Windows and Doors《现场测量安装的外门窗漏气性的标准试验方法》.pdf
  • ASTM E783-2002(2010) 8750 Standard Test Method for Field Measurement of Air Leakage Through Installed Exterior Windows and Doors《通过已安装的外窗户和门现场测量空气泄漏的标准试验方法》.pdf ASTM E783-2002(2010) 8750 Standard Test Method for Field Measurement of Air Leakage Through Installed Exterior Windows and Doors《通过已安装的外窗户和门现场测量空气泄漏的标准试验方法》.pdf
  • ASTM E784-1989(2005) Standard Specification for Clamps Utility Laboratory and Holders Buret and Clamp《实验室通用夹件和夹架、滴定管和夹件标准规范》.pdf ASTM E784-1989(2005) Standard Specification for Clamps Utility Laboratory and Holders Buret and Clamp《实验室通用夹件和夹架、滴定管和夹件标准规范》.pdf
  • ASTM E784-1989(2011) 2500 Standard Specification for Clamps Utility Laboratory and Holders Buret and Clamp《实验室通用夹具 以及滴定管、夹具固定器的标准规格》.pdf ASTM E784-1989(2011) 2500 Standard Specification for Clamps Utility Laboratory and Holders Buret and Clamp《实验室通用夹具 以及滴定管、夹具固定器的标准规格》.pdf
  • ASTM E784-1989(2017) 0858 Standard Specification for Clamps Utility Laboratory and Holders Buret and Clamp《实验室通用夹件和夹架 滴定管和夹件标准规格》.pdf ASTM E784-1989(2017) 0858 Standard Specification for Clamps Utility Laboratory and Holders Buret and Clamp《实验室通用夹件和夹架 滴定管和夹件标准规格》.pdf
  • ASTM E785-1981(2006) Standard Specification for Crucibles Ignition Laboratory Metal《实验室灼烧金属坩锅》.pdf ASTM E785-1981(2006) Standard Specification for Crucibles Ignition Laboratory Metal《实验室灼烧金属坩锅》.pdf
  • ASTM E785-1981(2011) 8750 Standard Specification for Crucibles Ignition Laboratory Metal《实验室灼烧金属坩锅的标准规格》.pdf ASTM E785-1981(2011) 8750 Standard Specification for Crucibles Ignition Laboratory Metal《实验室灼烧金属坩锅的标准规格》.pdf
  • ASTM E785-1981(2017) 7438 Standard Specification for Crucibles Ignition Laboratory Metal《实验室灼烧金属坩锅》.pdf ASTM E785-1981(2017) 7438 Standard Specification for Crucibles Ignition Laboratory Metal《实验室灼烧金属坩锅》.pdf
  • 相关搜索

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

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