[计算机类试卷]国家二级C语言机试(操作题)模拟试卷176及答案与解析.doc

上传人:brainfellow396 文档编号:498097 上传时间:2018-11-28 格式:DOC 页数:5 大小:38.50KB
下载 相关 举报
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷176及答案与解析.doc_第1页
第1页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷176及答案与解析.doc_第2页
第2页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷176及答案与解析.doc_第3页
第3页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷176及答案与解析.doc_第4页
第4页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷176及答案与解析.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

国家二级 C语言机试(操作题)模拟试卷 176及答案与解析 一、程序填空题 1 用筛选法可得到 2 n(n int fun(int n) int a10000, i, j, count=0; for (2=2; i #include #define N 81 fun(char*s) NONO() *请在此函数内打开文件,输入测试数据,调用 fun函数,输出数据,关闭文件。 * int i; char aN; FILE*rf, *wf; rf=fopen(“in dat“, “r“); wf=fopen(“out dat“, “w“); for(i=0; i=0; j-) bi+=sj; strcpy(s, b); 【试题解析】 进入 fun函数,根据前面的分析: 首先求得字符串的长度,然后通过循环进行字符交换。要注意的是,如果字符串长度赴奇数,则最中间的元素在逆置前后的位置是没有改变的。

展开阅读全文
相关资源
猜你喜欢
  • BS PD IEC TR 60601-4-1-2017 Medical electrical equipment Guidance and interpretation Medical electrical equipment and medical electrical systems employing a degree of auto.pdf BS PD IEC TR 60601-4-1-2017 Medical electrical equipment Guidance and interpretation Medical electrical equipment and medical electrical systems employing a degree of auto.pdf
  • BS PD IEC TR 60601-4-2-2016 Medical electrical equipment Guidance and interpretation Electromagnetic immunity performance of medical electrical equipment and medical elec.pdf BS PD IEC TR 60601-4-2-2016 Medical electrical equipment Guidance and interpretation Electromagnetic immunity performance of medical electrical equipment and medical elec.pdf
  • BS PD IEC TR 60601-4-3-2015 Medical electrical equipment Guidance and interpretation Considerations of unaddressed safety aspects in the third edition of IEC 60601-1 and p.pdf BS PD IEC TR 60601-4-3-2015 Medical electrical equipment Guidance and interpretation Considerations of unaddressed safety aspects in the third edition of IEC 60601-1 and p.pdf
  • BS PD IEC TR 60825-17-2015 Safety of laser products Safety aspects for use of passive optical components and optical cables in high power optical fibre communication syste.pdf BS PD IEC TR 60825-17-2015 Safety of laser products Safety aspects for use of passive optical components and optical cables in high power optical fibre communication syste.pdf
  • BS PD IEC TR 60865-2-2015 Short-circuit currents Calculation of effects Examples of calculation《短路电流 效应计算 计算范例》.pdf BS PD IEC TR 60865-2-2015 Short-circuit currents Calculation of effects Examples of calculation《短路电流 效应计算 计算范例》.pdf
  • BS PD IEC TR 60878-2015 Graphical symbols for electrical equipment in medical practice《医疗规程中电气设备的图形符号》.pdf BS PD IEC TR 60878-2015 Graphical symbols for electrical equipment in medical practice《医疗规程中电气设备的图形符号》.pdf
  • BS PD IEC TR 60893-4-2014 Insulating materials Industrial rigid laminated sheets based on thermosetting resins for electrical purposes Typical values《绝缘材料 电工用工业刚性热固树脂层压板材 .pdf BS PD IEC TR 60893-4-2014 Insulating materials Industrial rigid laminated sheets based on thermosetting resins for electrical purposes Typical values《绝缘材料 电工用工业刚性热固树脂层压板材 .pdf
  • BS PD IEC TR 61000-2-5-2017 Electromagnetic compatibility (EMC) Environment Description and classification of electromagnetic environments《电磁兼容性(EMC) 环境 电磁环境的描述和分类》.pdf BS PD IEC TR 61000-2-5-2017 Electromagnetic compatibility (EMC) Environment Description and classification of electromagnetic environments《电磁兼容性(EMC) 环境 电磁环境的描述和分类》.pdf
  • BS PD IEC TR 61000-4-38-2015 Electromagnetic compatibility (EMC) Testing and measurement techniques Test verification and calibration protocol for voltage fluctuation and .pdf BS PD IEC TR 61000-4-38-2015 Electromagnetic compatibility (EMC) Testing and measurement techniques Test verification and calibration protocol for voltage fluctuation and .pdf
  • 相关搜索

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

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