[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷43及答案与解析.doc

上传人:bonesoil321 文档编号:505575 上传时间:2018-11-29 格式:DOC 页数:3 大小:25.50KB
下载 相关 举报
[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷43及答案与解析.doc_第1页
第1页 / 共3页
[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷43及答案与解析.doc_第2页
第2页 / 共3页
[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷43及答案与解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、计算机三级数据库技术(上机操作)机试模拟试卷 43及答案与解析 一、程序设计题 1 函数 ReadDat()实现从数据文件 in dat中读取一篇英文文章存入到字符串数组xx中,请编写函数 ConvertCharD(),其函数的功能是:以行为单位把字符串中的所有小写字母改写成该字母的上一个字母。如果是字母 a,则改写成字母 z,其他字符保持不变。把已处理的字符串仍按行重新存入字符串数组 xx中。最后 main()函数调用函数 WriteDat()把结果 XX输出到文件 out dat中。 例如:原文: Adb Bedza abek LL hj 结果: Aca Bbcyz zabj LLgi 原

2、始数据文件存放的格式是:每行的宽度均小于 80个字符含标点符号和空格。 【试题程序】 #include #include char xx50 80; int maxline=0; *文章的总行数 * int ReadDat(void); void WriteDat(void); void ConvertCharD(void) void main() if(ReadDat() printf(”数据文件 IN DAT不能打开 ! n 007”); return; ConvertCharD(); WriteDat(): int ReadDat(void) FILE*fp; int i=0: char*P; if(fp=fopen(“in dat”。 “r”)=NULL) return 1; while(fgets(xxi, 80, fp)!=NULL) p: strchr(xxi. n, ); if(p)*p=0; i+; maxline=i; fclose(fp); return 0; void WriteDat(void) FILE*fP; int i; fp=fopen(“out dat”, “W”); for(i=0;i=a xxij=z) if(xxi-Fjl=a)xxij=zt else xxQj-一;

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 7000-12-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 12 Woven Fabrics《航空航天系列系列 非金属材料 材料标准编写和表示规则.第12部分.pdf AECMA PREN 7000-12-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 12 Woven Fabrics《航空航天系列系列 非金属材料 材料标准编写和表示规则.第12部分.pdf
  • AECMA PREN 7000-2-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 2  Rubbers《航空航天系列.材料标准起草和演示用非金属材料规则.第2 部分 橡胶》.pdf AECMA PREN 7000-2-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 2 Rubbers《航空航天系列.材料标准起草和演示用非金属材料规则.第2 部分 橡胶》.pdf
  • AECMA PREN 7000-6-2002 (CANCELLED) Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 6 Structural Adhesive Systems Edition .pdf AECMA PREN 7000-6-2002 (CANCELLED) Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 6 Structural Adhesive Systems Edition .pdf
  • AECMA PREN 7000-7-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 7 Anaerobic Polymerisable Compounds《航空航天系列系列 非金属材料.pdf AECMA PREN 7000-7-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 7 Anaerobic Polymerisable Compounds《航空航天系列系列 非金属材料.pdf
  • AECMA PREN 7000-8-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 8 Lightweight Cores Edition P 1《航空航天系列系列 非金属材料 材料标.pdf AECMA PREN 7000-8-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 8 Lightweight Cores Edition P 1《航空航天系列系列 非金属材料 材料标.pdf
  • AECMA PREN 7000-9-2002 (CANCELLED) Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 9 Paints and Varnishes Edition P 2 Rep.pdf AECMA PREN 7000-9-2002 (CANCELLED) Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 9 Paints and Varnishes Edition P 2 Rep.pdf
  • AECMA PREN 7001-1998 Aerospace Series Process Standards Rules for the Drafting and Presentation of Surface Treatment Standards Edition P 1《航空航天系列.过程标准提案和展示表面处理标准.P1版》.pdf AECMA PREN 7001-1998 Aerospace Series Process Standards Rules for the Drafting and Presentation of Surface Treatment Standards Edition P 1《航空航天系列.过程标准提案和展示表面处理标准.P1版》.pdf
  • AECMA PREN 8.6013-2001 Aerospace Series Qualification Procedure for Aerospace Products Edition P1《航空航天系列 航空航天产品 合格鉴定程序》.pdf AECMA PREN 8.6013-2001 Aerospace Series Qualification Procedure for Aerospace Products Edition P1《航空航天系列 航空航天产品 合格鉴定程序》.pdf
  • AECMA PREN 9000-1-1999 Aerospace Series Aerospace Industry Quality System Part 1 Requirements Applicable to Suppliers Edition P 3《航空航天系列系列 航空航天系列工业质量系统.第1部分 用于供应商的要求》.pdf AECMA PREN 9000-1-1999 Aerospace Series Aerospace Industry Quality System Part 1 Requirements Applicable to Suppliers Edition P 3《航空航天系列系列 航空航天系列工业质量系统.第1部分 用于供应商的要求》.pdf
  • 相关搜索

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

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