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

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

1、国家二级 C 语言机试(操作题)模拟试卷 371(无答案)一、程序填空题1 给定程序中,函数 fun 的功能是:将 s 所指字符串中的所有数字字符移到所有非数字字符之后,并保持数字字符串和非数字字符串原有的先后次序。例如,形参 s所指的字符串为:def35adh3kjsdf7 。执行结果为:defadhkj sdf3537 。请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。注意:源程序存放在考生文件夹下的 BLANK1C 中。不得增行或删行,也不得更改程序的结构!#include void fun (char *s) int i,j=0,k=0 ; char t1 80

2、t2 80 ;/*found*/ t2 jl=s i ; _1_;else tl k+ =s i ;t2 Ij =0; tl k =0 ;/*found*/ for(i=0; 1#include #define MAXLINE 20fun (char *pstrl61) int i,j ;char *p ;for (i=0 ; i #include #define M 81int fun (char *ss char c)main () char aM, ch;void NONO () ;printf (“nPlease enter a string:“);gets (a);printf(“

3、nPlease enter a char:“);ch= getchar();printf(“nThe number of the charis: dnjir fun (a, ch);NONO ();voici NONO ()/*本函数用于打开文件,输入测试数据,调用 fun 函数,输出数据,关闭文件。*/int i ;FILE *rf, *wf ;char aM,bM ,ch ;rf= fopen (“indat“ ,“r“);wf= fopen( “outdat“,“w“);for(i = 0 ; i 10 ; i+) fscanf (rf,“ s“,a);fscanf (rf, “ s“,b);ch=*b ;fprintf (wf, ”ooC=dn“, ch,fun (a ,ch);fclose (rf);fclose (wf);

展开阅读全文
相关资源
猜你喜欢
  • BS 1881-206-1986 Testing concrete - Recommendations for determination of strain in concrete《混凝土试验 第206部分 混凝土应力测定的推荐方法》.pdf BS 1881-206-1986 Testing concrete - Recommendations for determination of strain in concrete《混凝土试验 第206部分 混凝土应力测定的推荐方法》.pdf
  • BS 1881-207-1992 Testing concrete - Recommendations for the assessment of concrete strength by near-to-surface tests《混凝土试验 第207部分 用接近面层试验法评定混凝土强度的推荐方法》.pdf BS 1881-207-1992 Testing concrete - Recommendations for the assessment of concrete strength by near-to-surface tests《混凝土试验 第207部分 用接近面层试验法评定混凝土强度的推荐方法》.pdf
  • BS 1881-208-1996 Testing concrete - Recommendations for the determination of the initial surface absorption of concrete《混凝土试验 第208部分 混凝土初期表面吸水性推荐测定方法》.pdf BS 1881-208-1996 Testing concrete - Recommendations for the determination of the initial surface absorption of concrete《混凝土试验 第208部分 混凝土初期表面吸水性推荐测定方法》.pdf
  • BS 1881-209-1990 Testing concrete - Recommendations for the measurement of dynamic modulus of elasticity《混凝土试验 第209部分 动态弹性模量测定的推荐方法》.pdf BS 1881-209-1990 Testing concrete - Recommendations for the measurement of dynamic modulus of elasticity《混凝土试验 第209部分 动态弹性模量测定的推荐方法》.pdf
  • BS 1881-210-2013 Testing hardened concrete Determination of the potential carbonation resistance of concrete Accelerated carbonation method《硬化混凝土测试 混凝土潜在抗碳酸化作用的测定 加速碳酸化作用方法》.pdf BS 1881-210-2013 Testing hardened concrete Determination of the potential carbonation resistance of concrete Accelerated carbonation method《硬化混凝土测试 混凝土潜在抗碳酸化作用的测定 加速碳酸化作用方法》.pdf
  • BS 1881-211-2016 Testing concrete Part 211 Procedure and terminology for the petrographic examination of hardened concrete《混凝土试验 第211部分 硬化混凝土岩相检验程序和术语》.pdf BS 1881-211-2016 Testing concrete Part 211 Procedure and terminology for the petrographic examination of hardened concrete《混凝土试验 第211部分 硬化混凝土岩相检验程序和术语》.pdf
  • BS 1892-1-1986 Gymnasium equipment - Specification of general requirements《体育馆器械 一般要求规范》.pdf BS 1892-1-1986 Gymnasium equipment - Specification of general requirements《体育馆器械 一般要求规范》.pdf
  • BS 1892-2 11-1989 Gymnasium equipment - Particular requirements - Specification for practice and games netting and supporting trackways《体育器械 特殊要求 训练和比赛用网和支承滑轨规范》.pdf BS 1892-2 11-1989 Gymnasium equipment - Particular requirements - Specification for practice and games netting and supporting trackways《体育器械 特殊要求 训练和比赛用网和支承滑轨规范》.pdf
  • BS 1892-2 6-1986 Gymnasium equipment - Particular requirements - Specification for boxing rings《体育器械 第2部分 特殊要求 第6节 拳击台规范》.pdf BS 1892-2 6-1986 Gymnasium equipment - Particular requirements - Specification for boxing rings《体育器械 第2部分 特殊要求 第6节 拳击台规范》.pdf
  • 相关搜索
    资源标签

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

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