[计算机类试卷]国家二级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函数,根据前面的分析: 首先求得字符串的长度,然后通过循环进行字符交换。要注意的是,如果字符串长度赴奇数,则最中间的元素在逆置前后的位置是没有改变的。

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 2169-1999 Heat Resisting Steel FE-PA91-HT Solution Treated Bars and Sections for Welded Rings Aerospace Series Edition 2 [Refer To ASD-STAN PREN 4571]《航空航天系列.耐热钢 FE-PA91.pdf AECMA PREN 2169-1999 Heat Resisting Steel FE-PA91-HT Solution Treated Bars and Sections for Welded Rings Aerospace Series Edition 2 [Refer To ASD-STAN PREN 4571]《航空航天系列.耐热钢 FE-PA91.pdf
  • AECMA PREN 2170-1999 Heat Resisting Steel FE-PA91-HT Solution Treated Sheets and Strips a Less Than or Equal to 3 mm Aerospace Series Edition 2 [Refer To ASD-STAN PREN 4572]《航空航天系列.pdf AECMA PREN 2170-1999 Heat Resisting Steel FE-PA91-HT Solution Treated Sheets and Strips a Less Than or Equal to 3 mm Aerospace Series Edition 2 [Refer To ASD-STAN PREN 4572]《航空航天系列.pdf
  • AECMA PREN 2171-1999 Heat Resisting Steel FE-PA92-HT Rm Greater Than or Equal to 900 MPa Bars Aerospace Series Edition 2 Supersedes Edition 1 January 1979 [Refer To ASD-STAN PREN 4.pdf AECMA PREN 2171-1999 Heat Resisting Steel FE-PA92-HT Rm Greater Than or Equal to 900 MPa Bars Aerospace Series Edition 2 Supersedes Edition 1 January 1979 [Refer To ASD-STAN PREN 4.pdf
  • AECMA PREN 2172-1998 Aerospace Series Heat Resisting Alloy FE-PA2601 (X6NiCrTiMoV26-15) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm Rm Great.pdf AECMA PREN 2172-1998 Aerospace Series Heat Resisting Alloy FE-PA2601 (X6NiCrTiMoV26-15) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm Rm Great.pdf
  • AECMA PREN 2173-1979 Heat Resisting Steel FE-PA93-HT Solution Treated and Precipitation Treated Bars Aerospace Series Edition 1《航空航天系列.耐热钢 FE-PA93-HT溶液淀积处理棒材.第1版》.pdf AECMA PREN 2173-1979 Heat Resisting Steel FE-PA93-HT Solution Treated and Precipitation Treated Bars Aerospace Series Edition 1《航空航天系列.耐热钢 FE-PA93-HT溶液淀积处理棒材.第1版》.pdf
  • AECMA PREN 2174-1998 Aerospace Series Heat Resisting Alloy FE-PA2602 (X6NiCrTiMoV26-15) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm Rm Great.pdf AECMA PREN 2174-1998 Aerospace Series Heat Resisting Alloy FE-PA2602 (X6NiCrTiMoV26-15) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm Rm Great.pdf
  • AECMA PREN 2175-1998 Heat Resisting Steel FE-PA93-HT Solution Treated and Precipitation Treated Sheets and Strips a Less Than or Equal to 3 mm Aerospace Series Edition 2 [Refer To .pdf AECMA PREN 2175-1998 Heat Resisting Steel FE-PA93-HT Solution Treated and Precipitation Treated Sheets and Strips a Less Than or Equal to 3 mm Aerospace Series Edition 2 [Refer To .pdf
  • AECMA PREN 2176-1978 Heat Resisting Nickel Base Alloy FE-PA99-HT Solution Treated and Precipitation Treated Bar Aerospace Series Edition 1《航空航天系列.耐热镍基合金FE-PA99-HT》.pdf AECMA PREN 2176-1978 Heat Resisting Nickel Base Alloy FE-PA99-HT Solution Treated and Precipitation Treated Bar Aerospace Series Edition 1《航空航天系列.耐热镍基合金FE-PA99-HT》.pdf
  • AECMA PREN 2177-1999 Aerospace Series Heat Resisting Alloy FE-PA2501 (X4iCrMoTi43-13) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm Edition P1.pdf AECMA PREN 2177-1999 Aerospace Series Heat Resisting Alloy FE-PA2501 (X4iCrMoTi43-13) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm Edition P1.pdf
  • 相关搜索

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

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