【计算机类职业资格】国家三级(网络技术)机试-试卷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 中出现的次数。

展开阅读全文
相关资源
猜你喜欢
  • KS M ISO 14530-1-2006 Plastics-Unsaturated-polyester powder moulding compounds(UP-PMCs)-Part 1:Designation system and basis for specifications《塑料 不饱和聚酯粉末模塑化合物(UP-PMCs) 第1部分 命名体系及基本.pdf KS M ISO 14530-1-2006 Plastics-Unsaturated-polyester powder moulding compounds(UP-PMCs)-Part 1:Designation system and basis for specifications《塑料 不饱和聚酯粉末模塑化合物(UP-PMCs) 第1部分 命名体系及基本.pdf
  • KS M ISO 14530-3-2006 Plastics-Unsaturated-polyester powder moulding compounds(UP-PMCs)-Part 3:Requirements for selected moulding compounds《塑料 不饱和聚酯粉末模塑化合物(UP-PMCs) 第3部分 模塑化合物的要求》.pdf KS M ISO 14530-3-2006 Plastics-Unsaturated-polyester powder moulding compounds(UP-PMCs)-Part 3:Requirements for selected moulding compounds《塑料 不饱和聚酯粉末模塑化合物(UP-PMCs) 第3部分 模塑化合物的要求》.pdf
  • KS M ISO 14596-2009 Petroleum products-Determination of sulfur content- Wavelength-dispersive X-ray fluorescence spectrometry《石油产品 硫含量测定 波长色散X射线荧光光谱法》.pdf KS M ISO 14596-2009 Petroleum products-Determination of sulfur content- Wavelength-dispersive X-ray fluorescence spectrometry《石油产品 硫含量测定 波长色散X射线荧光光谱法》.pdf
  • KS M ISO 14615-2007 Adhesives-Durability of structural adhesive joints-Exposure to humidity and temperature under load《粘结剂 结构粘结接头的耐久性 有荷载并暴露在湿度和温度之下》.pdf KS M ISO 14615-2007 Adhesives-Durability of structural adhesive joints-Exposure to humidity and temperature under load《粘结剂 结构粘结接头的耐久性 有荷载并暴露在湿度和温度之下》.pdf
  • KS M ISO 14631-2007 Extruded sheets of impact-modified polystyrene(PS-I)-Requirements and test methods《冲击改良的聚苯乙烯(PS-I)的挤压片 要求和试验方法》.pdf KS M ISO 14631-2007 Extruded sheets of impact-modified polystyrene(PS-I)-Requirements and test methods《冲击改良的聚苯乙烯(PS-I)的挤压片 要求和试验方法》.pdf
  • KS M ISO 14679-2007 Adhesives-Measurement of adhesion characteristics by a three-point bending method《胶粘剂 通过用三点弯曲法测量粘附特性》.pdf KS M ISO 14679-2007 Adhesives-Measurement of adhesion characteristics by a three-point bending method《胶粘剂 通过用三点弯曲法测量粘附特性》.pdf
  • KS M ISO 14680-2-2007 Paints and varnishes-Determination of pigment content-Part 2:Ashing method《涂料和清漆 颜料含量的测定 第2部分 灰法》.pdf KS M ISO 14680-2-2007 Paints and varnishes-Determination of pigment content-Part 2:Ashing method《涂料和清漆 颜料含量的测定 第2部分 灰法》.pdf
  • KS M ISO 14680-3-2007 Paints and varnishes-Determination of pigment content-Part 3:Filtration method《涂料和清漆 颜料含量的测定 第3部分 过滤法》.pdf KS M ISO 14680-3-2007 Paints and varnishes-Determination of pigment content-Part 3:Filtration method《涂料和清漆 颜料含量的测定 第3部分 过滤法》.pdf
  • KS M ISO 14782-2008 Plastics-Determination of haze for transparent materials《塑料 透明材料模糊性的测定》.pdf KS M ISO 14782-2008 Plastics-Determination of haze for transparent materials《塑料 透明材料模糊性的测定》.pdf
  • 相关搜索

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

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