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

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 10300-2006 Steel tubes and fittings for onshore and offshore pipelines - Bituminous hot applied materials for external coating English version of DIN EN 10300 2006-02《近岸和海上管.pdf DIN EN 10300-2006 Steel tubes and fittings for onshore and offshore pipelines - Bituminous hot applied materials for external coating English version of DIN EN 10300 2006-02《近岸和海上管.pdf
  • DIN EN 10301-2004 Steel tubes and fittings for on and offshore pipelines - Internal coating for the reduction of friction for conveyance of non corrosive gas German version EN 1030.pdf DIN EN 10301-2004 Steel tubes and fittings for on and offshore pipelines - Internal coating for the reduction of friction for conveyance of non corrosive gas German version EN 1030.pdf
  • DIN EN 10302-2008 Creep resisting steels nickel and cobalt alloys English version of DIN EN 10302 2008-06《镍和镍钴合金的耐蠕变钢》.pdf DIN EN 10302-2008 Creep resisting steels nickel and cobalt alloys English version of DIN EN 10302 2008-06《镍和镍钴合金的耐蠕变钢》.pdf
  • DIN EN 10303-2016 Thin magnetic steel strip and sheet for use at medium frequencies German version EN 10303 2015《中等使用频率的薄磁性钢片材和带材 德文版本EN 10303-2015》.pdf DIN EN 10303-2016 Thin magnetic steel strip and sheet for use at medium frequencies German version EN 10303 2015《中等使用频率的薄磁性钢片材和带材 德文版本EN 10303-2015》.pdf
  • DIN EN 10304-2001 Magnetic materials (iron and steel) for use in relays German version EN 10304 2001《继电器磁性材料(钢铁)》.pdf DIN EN 10304-2001 Magnetic materials (iron and steel) for use in relays German version EN 10304 2001《继电器磁性材料(钢铁)》.pdf
  • DIN EN 10305-1-2016 en 4500 Steel tubes for precision applications - Technical delivery conditions - Part 1 Seamless cold drawn tubes German version EN 10305-1 2016《精密装置用钢管 交货技术条件 .pdf DIN EN 10305-1-2016 en 4500 Steel tubes for precision applications - Technical delivery conditions - Part 1 Seamless cold drawn tubes German version EN 10305-1 2016《精密装置用钢管 交货技术条件 .pdf
  • DIN EN 10305-2-2016 en 2803 Steel tubes for precision applications - Technical delivery conditions - Part 2 Welded cold drawn tubes German version EN 10305-2 2016《精密装置用钢管 交货技术条件 第2.pdf DIN EN 10305-2-2016 en 2803 Steel tubes for precision applications - Technical delivery conditions - Part 2 Welded cold drawn tubes German version EN 10305-2 2016《精密装置用钢管 交货技术条件 第2.pdf
  • DIN EN 10305-3-2016 en 2450 Steel tubes for precision applications - Technical delivery conditions - Part 3 Welded cold sized tubes German version EN 10305-3 2016《精密装置用钢管 交货技术条件 第3.pdf DIN EN 10305-3-2016 en 2450 Steel tubes for precision applications - Technical delivery conditions - Part 3 Welded cold sized tubes German version EN 10305-3 2016《精密装置用钢管 交货技术条件 第3.pdf
  • DIN EN 10305-4-2016 Steel tubes for precision applications - Technical delivery conditions - Part 4 Seamless cold drawn tubes for hydraulic and pneumatic power systems German versi.pdf DIN EN 10305-4-2016 Steel tubes for precision applications - Technical delivery conditions - Part 4 Seamless cold drawn tubes for hydraulic and pneumatic power systems German versi.pdf
  • 相关搜索
    资源标签

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

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