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

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

1、国家二级 C 语言机试(操作题)模拟试卷 335(无答案)一、程序填空题1 给定程序中,函数 fun 的功能是:判断形参 s 所指字符串是否是 ”回文”( Palindrome),若是,函数返回值为 1;不是,函数返回值为 0。”回文”是正读和反读都样的字符串(不区分大小写字母)。例如,LEVEL 和 Level 是“回文” ,而 LEVLEV 不是。请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。注意:源程序存放在考生文件夹下的 BLANK1C 中。不得增行或删行,也不得更改程序的结构!#include #include #include int fun (char *

2、s) char *lp,*rp;rp=s+strlen (s)1;while (toupper (*lp) =toupperif (lpVoid fun (int m, int k, int xx)Main()int m,n zz 1000 ; void NONO() ;printf “nPlease enter twointegers:“);scanf “d d“ ,m,n);fun (m, n zz);for(m= 0 ; mn ; m+)printf (“d”,zz m) ;printf(“n“);NONO();Void NONO ()/*本函数用于打开文件,输入测试数据,调用 fun 函数,输出数据,关闭文件。*/int m n,zz1000,i;FILE *rf, *wf ;rf= fopen(“indat“ ,“r“);wf= fopen (“outdat“,“w“);for(i = 0 ,i 10 ; i+) fscanf(rf, “ d d“, &m, &n);fun (m, n , zz);for(m=0;mn ;m+) fprintf(wf,“d“, z zm);fprintf (wf, “n“);fclose (rf);fclose (wf);

展开阅读全文
相关资源
猜你喜欢
  • JUS H G8 274-1987 Reagents Iron(ll) sulphate heptahydrate Determination of iron(ll) sulphate heptahydrate content Vo- lumetric method《试剂 七水合硫酸亚铁(II) 含七水合硫酸亚铁(II)含量的测定 体积法》.pdf JUS H G8 274-1987 Reagents Iron(ll) sulphate heptahydrate Determination of iron(ll) sulphate heptahydrate content Vo- lumetric method《试剂 七水合硫酸亚铁(II) 含七水合硫酸亚铁(II)含量的测定 体积法》.pdf
  • JUS H G8 275-1987 Reagents IronfHjsulphate heptahydrate Determination of substances insoluble inwater Gravimetric method《试剂 七水合硫酸亚铁(II) 不溶于水物质的含量测定 重量法》.pdf JUS H G8 275-1987 Reagents IronfHjsulphate heptahydrate Determination of substances insoluble inwater Gravimetric method《试剂 七水合硫酸亚铁(II) 不溶于水物质的含量测定 重量法》.pdf
  • JUS H G8 276-1987 Reagents lron(ll)sulphate heptahydrate Measurement ofpH Potenciometric method《试剂 七水合硫酸亚铁(II) pH值测定 电势滴定法》.pdf JUS H G8 276-1987 Reagents lron(ll)sulphate heptahydrate Measurement ofpH Potenciometric method《试剂 七水合硫酸亚铁(II) pH值测定 电势滴定法》.pdf
  • JUS H G8 277-1987 Reagents lron(ll)suiphate heptahydrate Determination ofiron(lll) content Colorimetric method《试剂 七水合硫酸亚铁(II) 铁(III)含量的测定 比色法》.pdf JUS H G8 277-1987 Reagents lron(ll)suiphate heptahydrate Determination ofiron(lll) content Colorimetric method《试剂 七水合硫酸亚铁(II) 铁(III)含量的测定 比色法》.pdf
  • JUS H G8 278-1987 Reagents lron(ll)sulphate heptalv drate Determination of chlorides content Turbidimetric method《试剂 硫酸亚铁(ll)七水合物 氯化物含量的测定 比浊法》.pdf JUS H G8 278-1987 Reagents lron(ll)sulphate heptalv drate Determination of chlorides content Turbidimetric method《试剂 硫酸亚铁(ll)七水合物 氯化物含量的测定 比浊法》.pdf
  • JUS H G8 279-1987 Reagents Iron(ll) M phate heptahydrate Determination of phosphate content Spectrophotometric method《试剂 七水合硫酸亚铁(II) 磷酸盐含量的测定 分光光度法》.pdf JUS H G8 279-1987 Reagents Iron(ll) M phate heptahydrate Determination of phosphate content Spectrophotometric method《试剂 七水合硫酸亚铁(II) 磷酸盐含量的测定 分光光度法》.pdf
  • JUS H G8 280-1987 Reagents lron(ll)sulphate heptahydrate Determination of total nitrogen content Colorimetric method《试剂 七水合硫酸亚铁(II) 总氮含量测定 比色法》.pdf JUS H G8 280-1987 Reagents lron(ll)sulphate heptahydrate Determination of total nitrogen content Colorimetric method《试剂 七水合硫酸亚铁(II) 总氮含量测定 比色法》.pdf
  • JUS H G8 281-1987 Reagents Ironflljsulphate heptahydrate Determination of copper zine manganese and lead contents F ame atomic absoiption method《试剂 七水合硫酸亚铁(II) 铜;锌;锰和铅含量的测定 火焰原子吸收法.pdf JUS H G8 281-1987 Reagents Ironflljsulphate heptahydrate Determination of copper zine manganese and lead contents F ame atomic absoiption method《试剂 七水合硫酸亚铁(II) 铜;锌;锰和铅含量的测定 火焰原子吸收法.pdf
  • JUS H G8 282-1987 Reagents Iron(ll) sulphate heptahydrate Determination of arsenic content Silver diethyldithiocarba- mate photometric method《试剂 七水合硫酸亚铁(II) 含砷量测定 二乙基二硫代氨基甲酸银盐光度法》.pdf JUS H G8 282-1987 Reagents Iron(ll) sulphate heptahydrate Determination of arsenic content Silver diethyldithiocarba- mate photometric method《试剂 七水合硫酸亚铁(II) 含砷量测定 二乙基二硫代氨基甲酸银盐光度法》.pdf
  • 相关搜索

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

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