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

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

计算机三级数据库技术(上机操作)机试模拟试卷 97及答案与解析 一、程序设计题 1 已知数据文件 in dat中存放有 300个四位数,并已调用读函数 readDat()把这些数存入数组 a中请编写函数 jsValue(),其功能是:求出千位数上的数减百位数上的数减十位数上的数减个位数上的数大于零的个数 cnt。再把所有满足此条件的四位数依次存人数组 b中然后对数组 b的四位数按从小到大的顺序进行排序。最后通过 main()函数调用写函数 writeDat(),把数组 b中的数输出到文件 out dat中。 例如: 9123, 91230,则该数满足条件, 存人数组 b中,且个数 cnt=cnt+1。 9812, 9-812 int aE3003, bE3003, cnt=O; void writeDat(); void readDat(); void jsValue() main() int i; readDat(); jsValue(); writeDat(); for(i=0;i0) *判断条件 * bcnt+=ai; for(i=0;ibj) temp=bi; bi=bj; bj=temp;

展开阅读全文
相关资源
猜你喜欢
  • STAS SR ISO 1167-1993 Plastics pipes for the transport of fluids Determination of the resistence to internai pressure《运输液体的塑料管道.内力阻力的测定》.pdf STAS SR ISO 1167-1993 Plastics pipes for the transport of fluids Determination of the resistence to internai pressure《运输液体的塑料管道.内力阻力的测定》.pdf
  • STAS SR ISO 1171-1981 Solid mineral fuels Determination of asn《固体矿物燃料.灰分的测定 》.pdf STAS SR ISO 1171-1981 Solid mineral fuels Determination of asn《固体矿物燃料.灰分的测定 》.pdf
  • STAS SR ISO 1178-1995 Magnesium alloys Determination of soluble zirconium Alizarin sulphonate photometric method《镁合金.测定可溶性锆.茜素磺酸光度法》.pdf STAS SR ISO 1178-1995 Magnesium alloys Determination of soluble zirconium Alizarin sulphonate photometric method《镁合金.测定可溶性锆.茜素磺酸光度法》.pdf
  • STAS SR ISO 1183-1994 Plastics - Methods for determining the density and relative density of non-cellular plastics《塑料.确定非泡沫塑料密度和相对密度的方法 》.pdf STAS SR ISO 1183-1994 Plastics - Methods for determining the density and relative density of non-cellular plastics《塑料.确定非泡沫塑料密度和相对密度的方法 》.pdf
  • STAS SR ISO 1187-1996 Special wrought copper alloys Chemical composition and forms of wrought products《特殊锻造铜合金.化学成分和锻造产品的各种形式》.pdf STAS SR ISO 1187-1996 Special wrought copper alloys Chemical composition and forms of wrought products《特殊锻造铜合金.化学成分和锻造产品的各种形式》.pdf
  • STAS SR ISO 1190 1-1993 Cooper and cooper alloys - Code of designation - Part 1  Designntinn of materials《铜与铜合金.代码的指定.第1部分: 材料的指定》.pdf STAS SR ISO 1190 1-1993 Cooper and cooper alloys - Code of designation - Part 1 Designntinn of materials《铜与铜合金.代码的指定.第1部分: 材料的指定》.pdf
  • STAS SR ISO 1190 2-1993 Copper and copper alloys Code of designation Part 2  Designation of tempers《铜及其合金.标志代码.第2部分:回火标识》.pdf STAS SR ISO 1190 2-1993 Copper and copper alloys Code of designation Part 2 Designation of tempers《铜及其合金.标志代码.第2部分:回火标识》.pdf
  • STAS SR ISO 1204-1990 Reciprocating internai combustion engines - Designation of the direction of rotation and of cylinders and valves in cylinder heads and definition of right-hana.pdf STAS SR ISO 1204-1990 Reciprocating internai combustion engines - Designation of the direction of rotation and of cylinders and valves in cylinder heads and definition of right-hana.pdf
  • STAS SR ISO 1210-1993 Plastics Determination of flammability characteristics of plastics in the form of small specimens in contact with a small flame《塑料.与小火焰相接触的小试样硬质塑料易燃特性的测定》.pdf STAS SR ISO 1210-1993 Plastics Determination of flammability characteristics of plastics in the form of small specimens in contact with a small flame《塑料.与小火焰相接触的小试样硬质塑料易燃特性的测定》.pdf
  • 相关搜索

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

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