[计算机类试卷]国家二级C语言机试(操作题)模拟试卷354(无答案).doc

上传人:medalangle361 文档编号:846909 上传时间:2019-02-21 格式:DOC 页数:3 大小:27KB
下载 相关 举报
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷354(无答案).doc_第1页
第1页 / 共3页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷354(无答案).doc_第2页
第2页 / 共3页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷354(无答案).doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

国家二级 C 语言机试(操作题)模拟试卷 354(无答案)一、程序填空题1 用筛选法可得到 2n (nint fun (int n) int a10000 ,i,j, count=0 ;i = 2;while (i#includevoid fun (int a,int *b,int *c) int i,j ,d,y;for (i=3;idouble fun (int n)NONO()/*请在此函数内打开文件,输入测试数据,调用 fun 函数,输出数据,关闭文件。*/FILE *rf,*wf; int n,i ; double s;rf fopen(“indat“,“r“) ;wf=fopen “outdat“,“w“) ;for(i = 0 ; i 10 ; i+) fscanf (rf, “ d“, &n);s = fun (n);fprintf (wf, “1fn“ , s);fclose (rf); fclose (wf);main()int n; double s ;printf(“nlnput n: ”);scanf(“d“, &n);s=fun (n);printf (“nns=fn“ ,s);NONO();

展开阅读全文
相关资源
猜你喜欢
  • DIN EN ISO 1043-3-2017 Plastics - Symbols and abbreviated terms - Part 3 Plasticizers (ISO 1043-3 2016) German version EN ISO 1043-3 2016《塑料 符号和缩略语 第3部分 增塑剂(ISO 1043-3-2016) 德文版本EN.pdf DIN EN ISO 1043-3-2017 Plastics - Symbols and abbreviated terms - Part 3 Plasticizers (ISO 1043-3 2016) German version EN ISO 1043-3 2016《塑料 符号和缩略语 第3部分 增塑剂(ISO 1043-3-2016) 德文版本EN.pdf
  • DIN EN ISO 1043-4-2016 Plastics - Symbols and abbreviated terms - Part 4 Flame retardants (ISO 1043-4 1998 + Amd 1 2016) German version EN ISO 1043-4 1999 + A1 2016《塑料 符号和缩略语 第4部分 .pdf DIN EN ISO 1043-4-2016 Plastics - Symbols and abbreviated terms - Part 4 Flame retardants (ISO 1043-4 1998 + Amd 1 2016) German version EN ISO 1043-4 1999 + A1 2016《塑料 符号和缩略语 第4部分 .pdf
  • DIN EN ISO 10432-2005 Petroleum and natural gas industries - Downhole equipment - Subsurface safety valve equipment (ISO 10432 2004) English version EN ISO 10432 2004《石油和天然气工业 下降孔设.pdf DIN EN ISO 10432-2005 Petroleum and natural gas industries - Downhole equipment - Subsurface safety valve equipment (ISO 10432 2004) English version EN ISO 10432 2004《石油和天然气工业 下降孔设.pdf
  • DIN EN ISO 10434-2005 Bolted bonnet steel gate valves for the petroleum petrochemical and allied industries (ISO 10434 2004) German version EN ISO 10434 2004《石油、石油化学和相关工业用螺栓帽状钢闸阀》.pdf DIN EN ISO 10434-2005 Bolted bonnet steel gate valves for the petroleum petrochemical and allied industries (ISO 10434 2004) German version EN ISO 10434 2004《石油、石油化学和相关工业用螺栓帽状钢闸阀》.pdf
  • DIN EN ISO 10437-2005 Petroleum petrochemical and natural gas industries - Steam turbines - Special-purpose applications (ISO 10437 2003) English version EN ISO 10437 2003《石油、石油化学和.pdf DIN EN ISO 10437-2005 Petroleum petrochemical and natural gas industries - Steam turbines - Special-purpose applications (ISO 10437 2003) English version EN ISO 10437 2003《石油、石油化学和.pdf
  • DIN EN ISO 10438-1-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 1 General requirements (ISO 10.pdf DIN EN ISO 10438-1-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 1 General requirements (ISO 10.pdf
  • DIN EN ISO 10438-2-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 2 Special-purpose oil systems .pdf DIN EN ISO 10438-2-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 2 Special-purpose oil systems .pdf
  • DIN EN ISO 10438-3-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 3 General-purpose oil systems .pdf DIN EN ISO 10438-3-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 3 General-purpose oil systems .pdf
  • DIN EN ISO 10438-4-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 4 Self-acting gas seal support.pdf DIN EN ISO 10438-4-2010 Petroleum petrochemical and natural gas industries - Lubrication shaft-sealing and control-oil systems and auxiliaries - Part 4 Self-acting gas seal support.pdf
  • 相关搜索
    资源标签

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

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