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

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

计算机三级数据库技术(上机操作)机试模拟试卷 42及答案与解析 一、程序设计题 1 在数据文件 in dat中已存有 200个正整数,且每个数均在 1000至 9999之间。函数 readDat()已读取这 200个数并存放到数组 aa中。请编写函数 jsSor1(),其函数的功能是:要求按每个数的后三位的大小进行升序排列,如果出现后三位相等的数值,则对这些数值按原始 4位数据进行降序排列,将排序后的前 10个数存人数组bb中。最后调用函数 writeDat()把结果 bb输出到文件 out dat中。 例如:处理前 6012 5099 9012 7025 8088 处理后 9012 6012 7025 8088 5099 【试题程序】 #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; iaaj 1000 aai 1000=aai 1000 aaEi=aaj; aaj=temp; for(i=0; i10;i+) *复制数组 * bbi=aai;

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 2591-617-1997 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part 617 Optical Elements Temperature Cycling Edition P 1《航空航天系列.光电连接元件 试验方法.第6.pdf AECMA PREN 2591-617-1997 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part 617 Optical Elements Temperature Cycling Edition P 1《航空航天系列.光电连接元件 试验方法.第6.pdf
  • AECMA PREN 2591-6321-1997 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part 6321 Optical Elements Damp Heat Cyclic Test Edition P 1《航空航天系列.光电连接元件 试验方.pdf AECMA PREN 2591-6321-1997 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part 6321 Optical Elements Damp Heat Cyclic Test Edition P 1《航空航天系列.光电连接元件 试验方.pdf
  • AECMA PREN 2591-6323-1995 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part 6323  Optical Elements Thermal Shock (Hermetically Sealed Devices) Editio.pdf AECMA PREN 2591-6323-1995 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part 6323 Optical Elements Thermal Shock (Hermetically Sealed Devices) Editio.pdf
  • AECMA PREN 2591-A1-1994 Aerospace Series Elements of Electrical and Optical Connection Test Methods - Part A1 - Visual Examination Edition 2 [Replaced By CEN EN 2591-101]《航空航天系列.光电.pdf AECMA PREN 2591-A1-1994 Aerospace Series Elements of Electrical and Optical Connection Test Methods - Part A1 - Visual Examination Edition 2 [Replaced By CEN EN 2591-101]《航空航天系列.光电.pdf
  • AECMA PREN 2591-A2-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods - Part A2 - Examination of Dimensions and Mass Edition 1《航空航天系列 光电连接元件 试验方法 A2部分.pdf AECMA PREN 2591-A2-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods - Part A2 - Examination of Dimensions and Mass Edition 1《航空航天系列 光电连接元件 试验方法 A2部分.pdf
  • AECMA PREN 2591-B1-1991 Aerospace Series Elements of Electrical and Optical Connection Test Methods - Part B1 - Contact Resistance - Low Level Edition 1《航空航天系列 光电连接元件 试验方法 B1部分 低压接.pdf AECMA PREN 2591-B1-1991 Aerospace Series Elements of Electrical and Optical Connection Test Methods - Part B1 - Contact Resistance - Low Level Edition 1《航空航天系列 光电连接元件 试验方法 B1部分 低压接.pdf
  • AECMA PREN 2591-B10-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part B10 - Electrical Overload Issue P 1《航空航天系列.光电连接元件 试验方法 B10部分 电器超-荷》.pdf AECMA PREN 2591-B10-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part B10 - Electrical Overload Issue P 1《航空航天系列.光电连接元件 试验方法 B10部分 电器超-荷》.pdf
  • AECMA PREN 2591-B13-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part B13 - Shielding Effectiveness from 100 MHz to 1 GHz Issue P 1《航空航天系列.光电连接元.pdf AECMA PREN 2591-B13-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part B13 - Shielding Effectiveness from 100 MHz to 1 GHz Issue P 1《航空航天系列.光电连接元.pdf
  • AECMA PREN 2591-B16-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part B16 - Engagement of Contacts Issue P 1《航空航天系列.光电连接元件 试验方法 B14部分 触点衔接》.pdf AECMA PREN 2591-B16-1992 Aerospace Series Elements of Electrical and Optical Connection Test Methods Part B16 - Engagement of Contacts Issue P 1《航空航天系列.光电连接元件 试验方法 B14部分 触点衔接》.pdf
  • 相关搜索

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

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