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

展开阅读全文
相关资源
猜你喜欢
  • ITU-R M 2057-1-2018 Systems characteristics of automotive radars operating in the frequency band 76-81 GHz for intelligent transport systems applications.pdf ITU-R M 2057-1-2018 Systems characteristics of automotive radars operating in the frequency band 76-81 GHz for intelligent transport systems applications.pdf
  • ITU-R M 2058-0-2014 Characteristics of a digital system named navigational data for broadcasting maritime safety and security related information from shore-to-ship in the maritime.pdf ITU-R M 2058-0-2014 Characteristics of a digital system named navigational data for broadcasting maritime safety and security related information from shore-to-ship in the maritime.pdf
  • ITU-R M 2059-0-2014 Operational and technical characteristics and protection criteria of radio altimeters utilizing the band 4 200-4 400 MHz《用于4200-4400 MHz波段的无线电高度仪的操作和技术特性及保护标准》.pdf ITU-R M 2059-0-2014 Operational and technical characteristics and protection criteria of radio altimeters utilizing the band 4 200-4 400 MHz《用于4200-4400 MHz波段的无线电高度仪的操作和技术特性及保护标准》.pdf
  • ITU-R M 2067-0-2015 Technical characteristics and protection criteria for Wireless Avionics Intra-Communication systems《无线航空电子机内通信系统的定义、技术特性和保护标准》.pdf ITU-R M 2067-0-2015 Technical characteristics and protection criteria for Wireless Avionics Intra-Communication systems《无线航空电子机内通信系统的定义、技术特性和保护标准》.pdf
  • ITU-R M 2068-0-2015 Characteristics of and protection criteria for systems operating in the mobile service in the frequency range 14 5-15 35 GHz《14 5-15 35 GHz频率范围内移动业务的系统特性和保护标准》.pdf ITU-R M 2068-0-2015 Characteristics of and protection criteria for systems operating in the mobile service in the frequency range 14 5-15 35 GHz《14 5-15 35 GHz频率范围内移动业务的系统特性和保护标准》.pdf
  • ITU-R M 2069-0-2014 Antenna rotation variability and effects on antenna coupling for radar interference analysis《雷达干扰分析中天线旋转的可变性及对天线耦合的影响》.pdf ITU-R M 2069-0-2014 Antenna rotation variability and effects on antenna coupling for radar interference analysis《雷达干扰分析中天线旋转的可变性及对天线耦合的影响》.pdf
  • ITU-R M 2070-0-2015 Generic unwanted emission characteristics of base stations using the terrestrial radio interfaces of IMT-Advanced《国际移动通信-IMT-高端用于地面无线电接口的基站的无用发射的一般特性》.pdf ITU-R M 2070-0-2015 Generic unwanted emission characteristics of base stations using the terrestrial radio interfaces of IMT-Advanced《国际移动通信-IMT-高端用于地面无线电接口的基站的无用发射的一般特性》.pdf
  • ITU-R M 2070-1-2017 Generic unwanted emission characteristic of base stations using the terrestrial radio interfaces of IMT-Advanced《使用先进的地面无线电接口的基站的一般不需要的发射特性》.pdf ITU-R M 2070-1-2017 Generic unwanted emission characteristic of base stations using the terrestrial radio interfaces of IMT-Advanced《使用先进的地面无线电接口的基站的一般不需要的发射特性》.pdf
  • ITU-R M 2071-0-2015 Generic unwanted emission characteristics of mobile stations using the terrestrial radio interfaces of IMT-Advanced《国际移动通信-IMT-高端用于地面无线电接口的移动电台无用发射的一般特性》.pdf ITU-R M 2071-0-2015 Generic unwanted emission characteristics of mobile stations using the terrestrial radio interfaces of IMT-Advanced《国际移动通信-IMT-高端用于地面无线电接口的移动电台无用发射的一般特性》.pdf
  • 相关搜索

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

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