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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 88及答案与解析 一、程序设计题 1 已知在数据文件 in dat中存有 100个产品销售记录,每个产品销售记录由产品代码 dm(字符型 4位 )、产品名称 mc(字符型 10位 )、单价 dj(整型 )、数量 sl(整型 )、金额 je(长整型 )五部分组成。其中:金额由公式金额一单价 *数量计算得出。函数 ReadDat()读取这 100个销售记录并存入结构体数组 sell中。请编写函数SortDat()。其功能是:按金额从大到小进行排列,若金额相等,则按产品名称从小到大进行排列,最终排列 结果仍存人结构体数组 sell中。最后通过 main(

2、)函数调用函数 WriteDat(),把结果输出到文件 out dat中。 【试题程序】 #include #include #include #define MAX 100 typedef struct char dm5; *产品代码 * char mc11; *产品名称 * int dj; *单价 * int sl; *数量 * long je; *金额 * PR0; PRO sellMAX; void ReadDat(); void WriteDat(); void SortDat() void main() memset(sell, 0, sizeof(sell); ReadDat(); SortDat(); WriteDat(); void ReadDat() FILE*fp; char str80, ch111; int i; fp=fopen(”in dat”, ”rII); for(i=0;i0) *判断条件 * temp=selli selli=sellj sellj=temp;

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 7000-12-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 12 Woven Fabrics《航空航天系列 非金属材料标准的编制和提交规则 第12部分 .pdf ASD-STAN PREN 7000-12-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 12 Woven Fabrics《航空航天系列 非金属材料标准的编制和提交规则 第12部分 .pdf
  • ASD-STAN PREN 7000-2-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 2  Rubbers《航空航天系列 非金属材料标准的编制和提交规则 第2部分 橡胶》.pdf ASD-STAN PREN 7000-2-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 2 Rubbers《航空航天系列 非金属材料标准的编制和提交规则 第2部分 橡胶》.pdf
  • ASD-STAN PREN 7000-7-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 7 Anaerobic Polymerisable Compounds《航空航天系列 非金属材.pdf ASD-STAN PREN 7000-7-1998 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 7 Anaerobic Polymerisable Compounds《航空航天系列 非金属材.pdf
  • ASD-STAN PREN 7000-8-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 8 Lightweight Cores (Edition P 1)《航空航天系列 非金属材料标.pdf ASD-STAN PREN 7000-8-1999 Aerospace Series Non-Metallic Materials Rules for the Drafting and Presentation of Material Standards Part 8 Lightweight Cores (Edition P 1)《航空航天系列 非金属材料标.pdf
  • ASD-STAN PREN 7001-1998 Aerospace Series Process Standards Rules for the Drafting and Presentation of Surface Treatment Standards (Edition P 1)《航空航天系列 表面处理标准的起草和提出程序规则 第P1版》.pdf ASD-STAN PREN 7001-1998 Aerospace Series Process Standards Rules for the Drafting and Presentation of Surface Treatment Standards (Edition P 1)《航空航天系列 表面处理标准的起草和提出程序规则 第P1版》.pdf
  • ASD-STAN PREN 8 6013-2001 Aerospace Series Qualification Procedure for Aerospace Products (Edition P1)《航空航天系列 航空航天工业产品质量评定程序 第P1版》.pdf ASD-STAN PREN 8 6013-2001 Aerospace Series Qualification Procedure for Aerospace Products (Edition P1)《航空航天系列 航空航天工业产品质量评定程序 第P1版》.pdf
  • ASD-STAN PREN 9000-1-1999 Aerospace Series Aerospace Industry Quality System Part 1 Requirements Applicable to Suppliers (Edition P 3)《航空航天系列 航空航天工业质量系统 第1部分 适用于供应商的要求 第P3版》.pdf ASD-STAN PREN 9000-1-1999 Aerospace Series Aerospace Industry Quality System Part 1 Requirements Applicable to Suppliers (Edition P 3)《航空航天系列 航空航天工业质量系统 第1部分 适用于供应商的要求 第P3版》.pdf
  • ASD-STAN PREN 9000-2-2000 Aerospace Series Aeroapace Industry Quality System Part 2 Requirements Applicable to Maintenance Organizations (Edition P2)《航空航天系列 航空航天工业质量系统 第2部分 适用于维护机构.pdf ASD-STAN PREN 9000-2-2000 Aerospace Series Aeroapace Industry Quality System Part 2 Requirements Applicable to Maintenance Organizations (Edition P2)《航空航天系列 航空航天工业质量系统 第2部分 适用于维护机构.pdf
  • ASD-STAN PREN 9100-2009 Quality Management Systems Requirements for Aviation Space and Defense Organizations (Edition P 3)《质量管理体系 对于航空、空间和国防组织的要求 第P3版》.pdf ASD-STAN PREN 9100-2009 Quality Management Systems Requirements for Aviation Space and Defense Organizations (Edition P 3)《质量管理体系 对于航空、空间和国防组织的要求 第P3版》.pdf
  • 相关搜索

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

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