[计算机类试卷]国家二级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();

展开阅读全文
相关资源
猜你喜欢
  • BS IEC 62483-2013 Environmental acceptance requirements for tin whisker susceptibility of tin and tin alloy surface finishes on semiconductor devices《半导体器件上锡及锡合金表面装饰的锡晶须敏感性的环境验收要求》.pdf BS IEC 62483-2013 Environmental acceptance requirements for tin whisker susceptibility of tin and tin alloy surface finishes on semiconductor devices《半导体器件上锡及锡合金表面装饰的锡晶须敏感性的环境验收要求》.pdf
  • BS IEC 62523-2010 Radiation protection instrumentation - Cargo vehicle radiographic inspection system《防辐射仪器 货物 车辆射线照相检验系统》.pdf BS IEC 62523-2010 Radiation protection instrumentation - Cargo vehicle radiographic inspection system《防辐射仪器 货物 车辆射线照相检验系统》.pdf
  • BS IEC 62525-2007 Standard test interface language (STIL) for digital test vector data《数字检测矢量数据的标准测试接口语言(STIL)》.pdf BS IEC 62525-2007 Standard test interface language (STIL) for digital test vector data《数字检测矢量数据的标准测试接口语言(STIL)》.pdf
  • BS IEC 62526-2007 Standard for extensions to standard test interface language (STIL) for semiconductor design environments《半导体设计环境用标准测试接口语言(STIL)的扩展标准》.pdf BS IEC 62526-2007 Standard for extensions to standard test interface language (STIL) for semiconductor design environments《半导体设计环境用标准测试接口语言(STIL)的扩展标准》.pdf
  • BS IEC 62527-2007 Standard for extensions to standard test interface language (STIL) for DC level specification《直流电等级规范用标准试验接口语言(STIL)的扩展标准》.pdf BS IEC 62527-2007 Standard for extensions to standard test interface language (STIL) for DC level specification《直流电等级规范用标准试验接口语言(STIL)的扩展标准》.pdf
  • BS IEC 62528-2007 Standard testability method for embedded core-based integrated circuits《嵌入式基于芯片的集成电路的标准可试性方法》.pdf BS IEC 62528-2007 Standard testability method for embedded core-based integrated circuits《嵌入式基于芯片的集成电路的标准可试性方法》.pdf
  • BS IEC 62529-2012 IEEE standard for signal and test definition《有关信号和测试定义的IEEE标准》.pdf BS IEC 62529-2012 IEEE standard for signal and test definition《有关信号和测试定义的IEEE标准》.pdf
  • BS IEC 62530-2011 SystemVerilog Unified hardware design specification and verification language《系统Verilog语言 统一硬件设计 规范和鉴定语言 》.pdf BS IEC 62530-2011 SystemVerilog Unified hardware design specification and verification language《系统Verilog语言 统一硬件设计 规范和鉴定语言 》.pdf
  • BS IEC 62531-2012 IEEE standard for property specification language (PSL)《属性说明语言(PSL)用IEEE标准》.pdf BS IEC 62531-2012 IEEE standard for property specification language (PSL)《属性说明语言(PSL)用IEEE标准》.pdf
  • 相关搜索
    资源标签

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

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