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

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

计算机三级数据库技术(上机操作)机试模拟试卷 98及答案与解析 一、程序设计题 1 在数据文件 in dat中存放有 200个正整数,且每个数均在 1000至 9999之间。函数 readDat()读取这 200个数存放到数组 as中。请编写函数 jsSort(),其功能是 ;要求按每个数的后三位的大小进行降序排列,如果出现后三位相等的数值,则对这些数值按原始 4位数据进行升序排列,将排序后的前 10个数存入数组 bb中。最后调用函数 writeDat()把结果 bb输出到文件 out dat中。 例:处理前 9012 5099 6012 7025 8088 处理后 5099 8088 7025 6012 9012 【试题程序】 #include #include void readDat(); void writeDat(); int aa200, bb10; void jsSort() void main() readDat(); jsSort(); writeDat(); void readDat() FILE*in; int i; in=fopen(“in dat”, “r”); for(i=0; iaai) *判断条件 * temp=aaEi; aaEi=aaj; aaj=temp; for(i=O!i10; i+) *复制数组 * bbEi=aai;

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 3993-1997 Aerospace Series Steel FE-CM1501 (X13CrNiMoCo12-3-2-2) Hardened and Tempered Precision and Sand Castings De Less Than or Equal to 150 mm Rm Greater Than or Equ.pdf AECMA PREN 3993-1997 Aerospace Series Steel FE-CM1501 (X13CrNiMoCo12-3-2-2) Hardened and Tempered Precision and Sand Castings De Less Than or Equal to 150 mm Rm Greater Than or Equ.pdf
  • AECMA PREN 3994-1997 Aerospace Series Steel FE-CM1501 (X13CrNiMoCo12-3-2-2) Non Heat Treated Remelting Stock Edition P 1《航空航天系列.FE-CM1501(X13CrNiMoCo12-3-2-2)非热处理钢 再熔原料》.pdf AECMA PREN 3994-1997 Aerospace Series Steel FE-CM1501 (X13CrNiMoCo12-3-2-2) Non Heat Treated Remelting Stock Edition P 1《航空航天系列.FE-CM1501(X13CrNiMoCo12-3-2-2)非热处理钢 再熔原料》.pdf
  • AECMA PREN 3996-1993 Aerospace Series Aluminium AL-P1100-H14 Sheet and Strip 0 3 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P1《航空航天系列.AL-P1100-H14型铝合金 0 3mm<a小于或.pdf AECMA PREN 3996-1993 Aerospace Series Aluminium AL-P1100-H14 Sheet and Strip 0 3 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P1《航空航天系列.AL-P1100-H14型铝合金 0 3mm<a小于或.pdf
  • AECMA PREN 3997-2002 Aerospace Series Aluminium Alloy AL-P2024-T3 Sheet and Strip 0 4 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P 1《航空航天系列.AL-P2024-T3型铝合金 0 4mm.pdf AECMA PREN 3997-2002 Aerospace Series Aluminium Alloy AL-P2024-T3 Sheet and Strip 0 4 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P 1《航空航天系列.AL-P2024-T3型铝合金 0 4mm.pdf
  • AECMA PREN 3999-2002 Aerospace Series Aluminium Alloy AL-P2024-T351 Sheet and Strip with Improved Chemical Milling Capability 1 6 mm Less Than or Equal to a Less Than or Equal to 6.pdf AECMA PREN 3999-2002 Aerospace Series Aluminium Alloy AL-P2024-T351 Sheet and Strip with Improved Chemical Milling Capability 1 6 mm Less Than or Equal to a Less Than or Equal to 6.pdf
  • AECMA PREN 4000-1997 Aerospace Series Metallic Materials Rules for the Drafting and Presentation of Dimensional Standards for Metallic Semi-Finished Products Edition P 2《航空航天系列.AL-.pdf AECMA PREN 4000-1997 Aerospace Series Metallic Materials Rules for the Drafting and Presentation of Dimensional Standards for Metallic Semi-Finished Products Edition P 2《航空航天系列.AL-.pdf
  • AECMA PREN 4001-2002 Aerospace Series Aluminium Alloy AL-P2024-T351 Clad Sheet and Strip with Improved Chemical Milling Capability 1 6 mm Less Than or Equal to a Less Than or Equal.pdf AECMA PREN 4001-2002 Aerospace Series Aluminium Alloy AL-P2024-T351 Clad Sheet and Strip with Improved Chemical Milling Capability 1 6 mm Less Than or Equal to a Less Than or Equal.pdf
  • AECMA PREN 4002-2002 Aerospace Series Aluminium Alloy AL-P2219-T81 Sheet and Strip 0 5 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P 2《航空航天系列.AL-P2219-T81型铝合金 改进的.pdf AECMA PREN 4002-2002 Aerospace Series Aluminium Alloy AL-P2219-T81 Sheet and Strip 0 5 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P 2《航空航天系列.AL-P2219-T81型铝合金 改进的.pdf
  • AECMA PREN 4003-2002 Aerospace Series Aluminium Alloy Al-P2219-T87 Sheet and Strip 0 5 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P 2《航空航天系列.铝合金板材和带材Al-P2219-T87.pdf AECMA PREN 4003-2002 Aerospace Series Aluminium Alloy Al-P2219-T87 Sheet and Strip 0 5 mm Less Than or Equal to a Less Than or Equal to 6 mm Edition P 2《航空航天系列.铝合金板材和带材Al-P2219-T87.pdf
  • 相关搜索

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

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