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

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

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

2、teDat()把结果输出到文件out dat中。 【试题程序】 #include #includestring h #include #define MAX 100 typedef struct char dmE5; *产品代码 * char mc11; *产品名称 * int dh *单价 * int s1; *数量 * long je; *金额 * PRO; PRO sellMAX; void ReadDat(); void WriteDat(); void SortDat() void main() memset(sell, 0, sizeof(sell); ReadDat(); SortDat(); WriteDat(); void ReadDat() FILE*fp; char strE80, ch11; int i, fp=fopen(”in dat”, ”r11); for(i=0;isellj je selli je= sellj je sellEj: templ

展开阅读全文
相关资源
猜你喜欢
  • ASTM A727 A727M-2014 Standard Specification for Carbon Steel Forgings for Piping Components with Inherent Notch Toughness《具有固定切口韧性的管道部件用碳素钢锻件的标准规格》.pdf ASTM A727 A727M-2014 Standard Specification for Carbon Steel Forgings for Piping Components with Inherent Notch Toughness《具有固定切口韧性的管道部件用碳素钢锻件的标准规格》.pdf
  • ASTM A729 A729M-2006 Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service.pdf ASTM A729 A729M-2006 Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service.pdf
  • ASTM A729 A729M-2009 Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《公共运输和电气铁路运输用热处理合金钢轴的标准规范》.pdf ASTM A729 A729M-2009 Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《公共运输和电气铁路运输用热处理合金钢轴的标准规范》.pdf
  • ASTM A729 A729M-2009(2014) Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《货物运输和电气铁路用热处理合金钢轴的标准实施规程》.pdf ASTM A729 A729M-2009(2014) Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《货物运输和电气铁路用热处理合金钢轴的标准实施规程》.pdf
  • ASTM A729 A729M-2009e1 Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《用于公共交通及电气化铁路的热处理合金钢轴的标准规格》.pdf ASTM A729 A729M-2009e1 Standard Specification for Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《用于公共交通及电气化铁路的热处理合金钢轴的标准规格》.pdf
  • ASTM A729 A729M-2015 Standard Specification for Carbon and Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《公共运输和电气铁路运输用热处理碳素合金钢轴的标准规格》.pdf ASTM A729 A729M-2015 Standard Specification for Carbon and Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《公共运输和电气铁路运输用热处理碳素合金钢轴的标准规格》.pdf
  • ASTM A729 A729M-2015e1 Standard Specification for Carbon and Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《货物运输和电气铁路用热处理碳和合金钢轴的标准实施规程》.pdf ASTM A729 A729M-2015e1 Standard Specification for Carbon and Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《货物运输和电气铁路用热处理碳和合金钢轴的标准实施规程》.pdf
  • ASTM A729 A729M-2017 Standard Specification for Carbon and Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《公共运输和电气铁路运输用热处理碳素合金钢轴的标准规格》.pdf ASTM A729 A729M-2017 Standard Specification for Carbon and Alloy Steel Axles Heat-Treated for Mass Transit and Electric Railway Service《公共运输和电气铁路运输用热处理碳素合金钢轴的标准规格》.pdf
  • ASTM A732 A732M-2005 Standard Specification for Castings Investment Carbon and Low Alloy Steel for General Application and Cobalt Alloy for High Strength at Elevated Temperatures.pdf ASTM A732 A732M-2005 Standard Specification for Castings Investment Carbon and Low Alloy Steel for General Application and Cobalt Alloy for High Strength at Elevated Temperatures.pdf
  • 相关搜索

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

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