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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 31及答案与解析 一、程序设计题 1 函数 ReadDat()实现从数据文件 in dat中读取一篇英文文章存入到字符串数组xx中;请编写函数 CharConvA(),其函数的功能是:以该文章中的行为单位把字符串中的最后一个字符的 ASCII码值右移 4位二进制位,高位补 0后加最后第二个字符的 ASCII码值,得到最后一个新的值。最后第二个字符的 ASCII码值右移 4位二进制位,高位补。后加最后第三个字符的 ASCII码值,得到最后第二个新的值,以此类推一直处理到第二个字符 。注意:第一个新的值与上述处理不同,第一个字符的 ASCII码值加原最

2、后一个字符的 ASCll码值,得到第一个新的值。得到的新值分别存放在原字符串对应的位置上,之后把已处理的字符串仍按行重新存入数组 xx中。最后 main()函数调用函数 WriteDat()把结果 xx输出到 out dat文件中。原始数据文件存放的格式是:每行的宽度均小于 80个字符,含标点符号和空格。并也按它们的 ASCII码值作以上处理。 【试题程序】 #include #include char xxES03E80; int maxline=0; *文章的总行数 * int ReadDat(void); void WriteDat(void); void CharConvA(void)

3、 void main() if(ReadDat() printf(”数据文件 IN DAT不能打开 ! n 007”): return; CharConvA(); WriteDal(); int ReadDat(void) FILE*fp; int i=0; char*P; if(fp=fopen(”in dat”, ”r”)=NU 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=0li0lj一一 ) x)iD=(xxiD4)+xxDD一 1; xxi3E03+=temp;

展开阅读全文
相关资源
猜你喜欢
  • BS PD ISO TS 19700-2016 Controlled equivalence ratio method for the determination of hazardous components of fire effluents Steady-state tube furnace《利用可控等值比法测定燃烧产物的有害成分 稳态管式炉》.pdf BS PD ISO TS 19700-2016 Controlled equivalence ratio method for the determination of hazardous components of fire effluents Steady-state tube furnace《利用可控等值比法测定燃烧产物的有害成分 稳态管式炉》.pdf
  • BS PD ISO TS 19709-2-2016 Transport packaging Small load container systems Column Stackable System (CSS)《运输包装 小负荷容器系统 柱堆叠系统 (CSS)》.pdf BS PD ISO TS 19709-2-2016 Transport packaging Small load container systems Column Stackable System (CSS)《运输包装 小负荷容器系统 柱堆叠系统 (CSS)》.pdf
  • BS PD ISO TS 19709-3-2016 Transport packaging Small load container systems Bond Stackable System (BSS)《运输包装 小负荷集装箱系统 成捆可堆码系统 (BSS)》.pdf BS PD ISO TS 19709-3-2016 Transport packaging Small load container systems Bond Stackable System (BSS)《运输包装 小负荷集装箱系统 成捆可堆码系统 (BSS)》.pdf
  • BS PD ISO TS 19858-2015 Forestry machines Portable chainsaws Test method for evaluating saw chain oil lubricity《林业机械 便携式链锯 评估锯链油润滑性的试验方法》.pdf BS PD ISO TS 19858-2015 Forestry machines Portable chainsaws Test method for evaluating saw chain oil lubricity《林业机械 便携式链锯 评估锯链油润滑性的试验方法》.pdf
  • BS PD ISO TS 19880-1-2016 Gaseous hydrogen Fuelling stations General requirements《气态氢 燃料站 通用要求》.pdf BS PD ISO TS 19880-1-2016 Gaseous hydrogen Fuelling stations General requirements《气态氢 燃料站 通用要求》.pdf
  • BS PD ISO TS 19883-2017 Safety of pressure swing adsorption systems for hydrogen separation and purification《氢分离和净化的变压吸附系统安全》.pdf BS PD ISO TS 19883-2017 Safety of pressure swing adsorption systems for hydrogen separation and purification《氢分离和净化的变压吸附系统安全》.pdf
  • BS PD ISO TS 20328-2016 Imaging materials Lenticular lens sheet Measurements and specifications of dimensions《成像材料 双凸透镜片 尺寸测量和规格》.pdf BS PD ISO TS 20328-2016 Imaging materials Lenticular lens sheet Measurements and specifications of dimensions《成像材料 双凸透镜片 尺寸测量和规格》.pdf
  • BS PD ISO TS 20460-2015 Paper and board Automated on-line testing Metrological comparability between standardized measurements and output of on-line gauges《纸和纸板 自动在线检测 标准化测量与在线测量仪输出之间的计量可比性.pdf BS PD ISO TS 20460-2015 Paper and board Automated on-line testing Metrological comparability between standardized measurements and output of on-line gauges《纸和纸板 自动在线检测 标准化测量与在线测量仪输出之间的计量可比性.pdf
  • BS PD ISO TS 20477-2017 Nanotechnologies Standard terms and their definition for cellulose nanomaterial《纳米技术 纤维素纳米材料的标准术语及其定义》.pdf BS PD ISO TS 20477-2017 Nanotechnologies Standard terms and their definition for cellulose nanomaterial《纳米技术 纤维素纳米材料的标准术语及其定义》.pdf
  • 相关搜索

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

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