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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 57及答案与解析 一、程序设计题 1 已知数据文件 inl dat和 in2 dat中分别存有 100个两位十进制数,并且已调用读函数 ReadDat()把这两个文件中的数存入数组 a和 b中,请编写函数 jsVal()实现的功能是依次对数组 a和 b中的数按条件重新组成一个新数,并依次存人数组 c中,再对数组 C中的数按从小到大的顺序进行排序,最后调用写函数 writeDat()把结果 c输出到文件 out dat中。组成新数的条件是:如果数组 a和 b中相同下标位置的数必须符合一个是 偶数,另一个是奇数,则数组 a中的数按二进制数左移八位后再加

2、上数组 b对应位置上的数,把组成的新数依次存人数组 c中。 例如: a: 12 33 24 15 21 b: 32 35 17 15 18 C: 6161 5394 排序后 C: 5394 6161 【试题程序】 #include #define MAX 100 unsigned int aMAX, bMAX。 eMAX; int cnt=0; *存放符合条件数的个数 * void writeDat(); void jsVal() void readDat() int i; FILE*fp; fp=fopen(“inl dat”。 “r”); for(i=0; i0Ii+) printf(“ d n”, ci); writeDat(); void writeDat() FILE*fp; int i; fp=fopen(“out dat”, “W”); for(i=0;i0,i+) fprintf(fp, “ d n”, ci); fclose(fp); 计算机三级数据库技术(上机操作)机试模拟试卷 57答案与解析 一、程序设计题 1 【正确答案】 void jsVal() int i,j; *定义变量 * int temp; for(i=0;iej-) temp=ci; ci=cEj; cj一 temp! ) )

展开阅读全文
相关资源
猜你喜欢
  • ASTM A666-2003 Standard Specification for Annealed or Cold-Worked Austenitic Stainless Steel Sheet Strip Plate and Flat Bar《退火或冷加工的奥氏体不锈钢薄板、带材、中厚板和扁棒用标准规范》.pdf ASTM A666-2003 Standard Specification for Annealed or Cold-Worked Austenitic Stainless Steel Sheet Strip Plate and Flat Bar《退火或冷加工的奥氏体不锈钢薄板、带材、中厚板和扁棒用标准规范》.pdf
  • ASTM A666-2010 Standard Specification for Annealed or Cold-Worked Austenitic Stainless Steel Sheet Strip Plate and Flat Bar《退火或冷加工的奥氏体不锈钢薄板 带材 中厚板和扁棒的标准规范》.pdf ASTM A666-2010 Standard Specification for Annealed or Cold-Worked Austenitic Stainless Steel Sheet Strip Plate and Flat Bar《退火或冷加工的奥氏体不锈钢薄板 带材 中厚板和扁棒的标准规范》.pdf
  • ASTM A666-2015 Standard Specification for Annealed or Cold-Worked Austenitic Stainless Steel Sheet Strip Plate and Flat Bar《退火或冷加工的奥氏体不锈钢薄板 带材 厚板和扁棒材的标准规格》.pdf ASTM A666-2015 Standard Specification for Annealed or Cold-Worked Austenitic Stainless Steel Sheet Strip Plate and Flat Bar《退火或冷加工的奥氏体不锈钢薄板 带材 厚板和扁棒材的标准规格》.pdf
  • ASTM A667 A667M-1987(2003) Standard Specification for Centrifugally Cast Dual Metal (Gray and White Cast Iron) Cylinders.pdf ASTM A667 A667M-1987(2003) Standard Specification for Centrifugally Cast Dual Metal (Gray and White Cast Iron) Cylinders.pdf
  • ASTM A667 A667M-1987(2008) Standard Specification for Centrifugally Cast Dual Metal (Gray and White Cast Iron) Cylinders《离心铸造的双金属(灰口及白口铸铁)圆柱体的标准规范》.pdf ASTM A667 A667M-1987(2008) Standard Specification for Centrifugally Cast Dual Metal (Gray and White Cast Iron) Cylinders《离心铸造的双金属(灰口及白口铸铁)圆柱体的标准规范》.pdf
  • ASTM A667 A667M-1987(2012) Standard Specification for Centrifugally Cast Dual Metal (Gray and White Cast Iron) Cylinders《离心铸造的双金属(灰口及白口铸铁)圆柱体的标准规格》.pdf ASTM A667 A667M-1987(2012) Standard Specification for Centrifugally Cast Dual Metal (Gray and White Cast Iron) Cylinders《离心铸造的双金属(灰口及白口铸铁)圆柱体的标准规格》.pdf
  • ASTM A668 A668M-2004 Standard Specification for Steel Forgings Carbon and Alloy for General Industrial Use.pdf ASTM A668 A668M-2004 Standard Specification for Steel Forgings Carbon and Alloy for General Industrial Use.pdf
  • ASTM A668 A668M-2004(2009) Standard Specification for Steel Forgings Carbon and Alloy for General Industrial Use《一般工业用碳素钢和合金钢锻件的标准规范》.pdf ASTM A668 A668M-2004(2009) Standard Specification for Steel Forgings Carbon and Alloy for General Industrial Use《一般工业用碳素钢和合金钢锻件的标准规范》.pdf
  • ASTM A668 A668M-2013 Standard Specification for Steel Forgings Carbon and Alloy for General Industrial Use《一般工业用碳素钢和合金钢锻件的标准规格》.pdf ASTM A668 A668M-2013 Standard Specification for Steel Forgings Carbon and Alloy for General Industrial Use《一般工业用碳素钢和合金钢锻件的标准规格》.pdf
  • 相关搜索

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

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