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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 38及答案与解析 一、程序设计题 1 函数 ReadDat()实现从数据文件 in dat中读取一篇英文文章,存入到字符串数组XX中;请编写函数 eneryptChar(),按给定的替代关系对数组 XX中的所有字符进行替代,其替代值仍存入数组 xX所对应的位置上,最后调用函数 WriteDat()把结果 xx输出到文件 out dat中。替代关系: f(p)=P*11 mod256, mod为取余运算, P是数组 XX中某一个字符的 ASCII码值, f(p)是计算后的整型值 (注意:中 间变量定义成整型变量 ),如果原字符是数字字符 0至 9或计

2、算后 f(p)值小于等于 32,则该字符不变否则用 f(p)替代所对应的字符。 【试题程序】 #include #include #include unsigned char xFS03ES03, int maxline=0; *文章的总行数 * int ReadDat(void), void WriteDat(void); void encryptChar() void main() if(ReadDat() printf(“数据文件 IN DAT不能打开 ! n 007”); return; encryptChar(); WriteDat(); int ReadDat(void) FILE*fp; int i=0; unsigned char*P; if(fp=fopen(“in dat”, ”r”)-=NULL) return 1; while(fgets(xxEi3, 80, fp)!=NULL) p=strehr(xxi, n); if(p)*p=0; i+; maxline=i; felose(fp); return 0; void WriteDat(void) FILE*fP; int i; fp=fopen(“out dat”, “w”); for(i=0; i=0 else xxEiji=val;

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 4570-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated Forgings De Less Than or Equal to 100 mm (Edition P1)《航空航天系列 耐热合金FE-PA4.pdf ASD-STAN PREN 4570-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated Forgings De Less Than or Equal to 100 mm (Edition P1)《航空航天系列 耐热合金FE-PA4.pdf
  • ASD-STAN PREN 4571-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated Bar and Section De Less Than or Equal to 100 mm (Edition P1)《航空航天系列 耐热合.pdf ASD-STAN PREN 4571-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated Bar and Section De Less Than or Equal to 100 mm (Edition P1)《航空航天系列 耐热合.pdf
  • ASD-STAN PREN 4572-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated Sheet and Strip a Less Than or Equal to 3 mm (Edition P1)《航空航天系列 耐热合金FE.pdf ASD-STAN PREN 4572-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated Sheet and Strip a Less Than or Equal to 3 mm (Edition P1)《航空航天系列 耐热合金FE.pdf
  • ASD-STAN PREN 4573-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated and Precipitation Treated Bar and Section De Less Than or Equal to 100 .pdf ASD-STAN PREN 4573-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated and Precipitation Treated Bar and Section De Less Than or Equal to 100 .pdf
  • ASD-STAN PREN 4574-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm (Edi.pdf ASD-STAN PREN 4574-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated and Precipitation Treated Forgings De Less Than or Equal to 100 mm (Edi.pdf
  • ASD-STAN PREN 4575-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated and Descaled Sheet and Plate 3 mm Less Than a Less Than or Equal to 50 .pdf ASD-STAN PREN 4575-1999 Aerospace Series Heat Resisting Alloy FE-PA4901 (X12CrNiCoMoW21-20) Solution Treated and Descaled Sheet and Plate 3 mm Less Than a Less Than or Equal to 50 .pdf
  • ASD-STAN PREN 4585-2000 Aerospace Series Clips Spring Tension Technical Specification (Edition P 1)《航空航天系列 抗拉弹簧卡箍 技术规范 第P1版》.pdf ASD-STAN PREN 4585-2000 Aerospace Series Clips Spring Tension Technical Specification (Edition P 1)《航空航天系列 抗拉弹簧卡箍 技术规范 第P1版》.pdf
  • ASD-STAN PREN 4588-2005 Aerospace Series Paints and Varnishes Two Component Cold Curing Polyurethane Paint Anti Slip (Edition P 1)《航空航天系列 油漆和清漆 防滑两组分冷固化聚氨酯漆 第P1版》.pdf ASD-STAN PREN 4588-2005 Aerospace Series Paints and Varnishes Two Component Cold Curing Polyurethane Paint Anti Slip (Edition P 1)《航空航天系列 油漆和清漆 防滑两组分冷固化聚氨酯漆 第P1版》.pdf
  • ASD-STAN PREN 4590-2000 Aerospace Series Retainers Spring Sheet Metal for Self-Locking Barrel Nuts in Corrosion Resisting Steel Passivated (Editino P 1)《航空航天系列 经钝化处理的耐蚀钢制自锁筒状螺母用金属板.pdf ASD-STAN PREN 4590-2000 Aerospace Series Retainers Spring Sheet Metal for Self-Locking Barrel Nuts in Corrosion Resisting Steel Passivated (Editino P 1)《航空航天系列 经钝化处理的耐蚀钢制自锁筒状螺母用金属板.pdf
  • 相关搜索

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

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