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

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

1、国家二级 C 语言机试(操作题)模拟试卷 334(无答案)一、程序填空题1 给定程序中,函数 fun 的功能是:利用指针数组对形参 ss 所指字符串数组中的字符串按由长到短的顺序排序,并输出排序结果。ss 所指字符串数组中共有 N 个字符串,且串长小于 M。请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。注意:源程序存放在考生文件夹下的 BLANK1C 中。不得增行或删行,也不得更改程序的结构!#include #include #define N 5#define M 8void fun (char (*ss) M ) char *psN,*tp; int i, j,k

2、for (i=0; i#include fun (int n) double sum s0,s1,s2,s; int k;sum = 10;if (n #include double fun (double x , int n)main()void NONO ();printf(“fn“, fun(03,10);NONO();void NONO ()/*本函数用于打开文件,输入数据,调用函数,输出数据,关闭文件。*/FILE *fp,*wf ;int i,n ;double S,X ;fp=fopen (“indat“,“r“);wf = fopen (“outdat“, “w“);for(i=0 ; i 10 ; i+) fscanf (fp, “lf ,d“ , &x, &n) ;s = fun (x, n);fprintf (wf, “fn“ , s);fclose( fp);fclose (wf);

展开阅读全文
相关资源
猜你喜欢
  • ASTM E1825-2006(2012) Standard Guide for Evaluation of Exterior Building Wall Materials Products and Systems 《建筑外墙材料 产品和系统评估的标准指南》.pdf ASTM E1825-2006(2012) Standard Guide for Evaluation of Exterior Building Wall Materials Products and Systems 《建筑外墙材料 产品和系统评估的标准指南》.pdf
  • ASTM E1825-2017 Standard Guide for Evaluation of Exterior Building Wall Materials Products and Systems《建筑外墙材料 产品和系统评估的标准指南》.pdf ASTM E1825-2017 Standard Guide for Evaluation of Exterior Building Wall Materials Products and Systems《建筑外墙材料 产品和系统评估的标准指南》.pdf
  • ASTM E1826-2005 Standard Specification for Low Volatile Organic Compound (VOC) Corrosion-Inhibiting Adhesive Primer for Aluminum Alloys to Be Adhesively Bonded《铝合金粘结用低挥发性有机化合物耐腐蚀粘合.pdf ASTM E1826-2005 Standard Specification for Low Volatile Organic Compound (VOC) Corrosion-Inhibiting Adhesive Primer for Aluminum Alloys to Be Adhesively Bonded《铝合金粘结用低挥发性有机化合物耐腐蚀粘合.pdf
  • ASTM E1826-2011 Standard Specification for Low Volatile Organic Compound (VOC) Corrosion-Inhibiting Adhesive Primer for Aluminum Alloys to Be Adhesively Bonded《待粘接铝合金用低挥发有机化合物(VOC).pdf ASTM E1826-2011 Standard Specification for Low Volatile Organic Compound (VOC) Corrosion-Inhibiting Adhesive Primer for Aluminum Alloys to Be Adhesively Bonded《待粘接铝合金用低挥发有机化合物(VOC).pdf
  • ASTM E1826-2012 Standard Specification for Low Volatile Organic Compound (VOC) Corrosion-Inhibiting Adhesive Primer for Aluminum Alloys to Be Adhesively Bonded《铝合金粘结用低挥发性有机化合物 (VOC.pdf ASTM E1826-2012 Standard Specification for Low Volatile Organic Compound (VOC) Corrosion-Inhibiting Adhesive Primer for Aluminum Alloys to Be Adhesively Bonded《铝合金粘结用低挥发性有机化合物 (VOC.pdf
  • ASTM E1827-1996(2007) Standard Test Methods for Determining Airtightness of Buildings Using an Orifice Blower Door《用风孔门测定建筑物空气密封性的标准试验方法》.pdf ASTM E1827-1996(2007) Standard Test Methods for Determining Airtightness of Buildings Using an Orifice Blower Door《用风孔门测定建筑物空气密封性的标准试验方法》.pdf
  • ASTM E1827-2011 Standard Test Methods for Determining Airtightness of Buildings Using an Orifice Blower Door《以气口鼓风门测定建筑物气密性的标准试验方法》.pdf ASTM E1827-2011 Standard Test Methods for Determining Airtightness of Buildings Using an Orifice Blower Door《以气口鼓风门测定建筑物气密性的标准试验方法》.pdf
  • ASTM E1827-2011(2017) Standard Test Methods for Determining Airtightness of Buildings Using an Orifice Blower Door《利用气口鼓风门测定建筑物气密性的标准试验方法》.pdf ASTM E1827-2011(2017) Standard Test Methods for Determining Airtightness of Buildings Using an Orifice Blower Door《利用气口鼓风门测定建筑物气密性的标准试验方法》.pdf
  • ASTM E1829-2002 Standard Guide for Handling Specimens Prior to Surface Analysis《先于表面分析的样品处置标准指南》.pdf ASTM E1829-2002 Standard Guide for Handling Specimens Prior to Surface Analysis《先于表面分析的样品处置标准指南》.pdf
  • 相关搜索
    资源标签

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

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