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

展开阅读全文
相关资源
猜你喜欢
  • EN ISO 3175-3-2003 en Textiles Professional care drycleaning and wetcleaning of fabrics and garments - Part 3 Procedure for testing performance when cleaning and finishing using hy.pdf EN ISO 3175-3-2003 en Textiles Professional care drycleaning and wetcleaning of fabrics and garments - Part 3 Procedure for testing performance when cleaning and finishing using hy.pdf
  • EN ISO 3175-3-2018 en Textiles - Professional care drycleaning and wetcleaning of fabrics and garments - Part 3 Procedure for testing performance when cleaning and finishing using .pdf EN ISO 3175-3-2018 en Textiles - Professional care drycleaning and wetcleaning of fabrics and garments - Part 3 Procedure for testing performance when cleaning and finishing using .pdf
  • EN ISO 3175-4-2003 en Textiles - Professional care drycleaning and wetcleaning of fabrics and garments - Part 4 Procedure for testing performance when cleaning and finishing using .pdf EN ISO 3175-4-2003 en Textiles - Professional care drycleaning and wetcleaning of fabrics and garments - Part 4 Procedure for testing performance when cleaning and finishing using .pdf
  • EN ISO 3175-4-2018 en Textiles - Professional care drycleaning and wetcleaning of fabrics and garments - Part 4 Procedure for testing performance when cleaning and finishing using .pdf EN ISO 3175-4-2018 en Textiles - Professional care drycleaning and wetcleaning of fabrics and garments - Part 4 Procedure for testing performance when cleaning and finishing using .pdf
  • EN ISO 3183-2012 en Petroleum and natural gas industries - Steel pipe for pipeline transportation systems (Incorporates amendment A1 2018)《石油和天然气行业 钢管管道运输系统(取代 CEN 10208 -1 CEN 102.pdf EN ISO 3183-2012 en Petroleum and natural gas industries - Steel pipe for pipeline transportation systems (Incorporates amendment A1 2018)《石油和天然气行业 钢管管道运输系统(取代 CEN 10208 -1 CEN 102.pdf
  • EN ISO 3188-1994 en Starches and Derived Products - Determination of Nitrogen Content by the Kjeldahl Method - Titrimetric Method《淀粉及其制品 用基耶达尔法(Kjeldahl)测定含氮量 滴定法》.pdf EN ISO 3188-1994 en Starches and Derived Products - Determination of Nitrogen Content by the Kjeldahl Method - Titrimetric Method《淀粉及其制品 用基耶达尔法(Kjeldahl)测定含氮量 滴定法》.pdf
  • EN ISO 3210-2010 en Anodizing of aluminium and its alloys - Assessment of quality of sealed anodic oxidation coatings by measurement of the loss of mass after immersion in phosphor.pdf EN ISO 3210-2010 en Anodizing of aluminium and its alloys - Assessment of quality of sealed anodic oxidation coatings by measurement of the loss of mass after immersion in phosphor.pdf
  • EN ISO 3211-2010 en Anodizing of aluminium and its alloys - Assessment of resistance of anodic oxidation coatings to cracking by deformation《铝和铝合金的阳极氧化 阳极氧化涂层变形裂解耐受性评定》.pdf EN ISO 3211-2010 en Anodizing of aluminium and its alloys - Assessment of resistance of anodic oxidation coatings to cracking by deformation《铝和铝合金的阳极氧化 阳极氧化涂层变形裂解耐受性评定》.pdf
  • EN ISO 3218-2014 en Essential oils - Principles of nomenclature《精油 命名原则(ISO 3218 2014)》.pdf EN ISO 3218-2014 en Essential oils - Principles of nomenclature《精油 命名原则(ISO 3218 2014)》.pdf
  • 相关搜索

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

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