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

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

计算机三级数据库技术(上机操作)机试模拟试卷 48及答案与解析 一、程序设计题 1 已知数据文件 in dat中存有 200个四位数。并已调用读函数 readDat()把这些数存入数组 a中,请编写函数 jsVal()。其功能是。把一个四位数的千位数位置上的值加上十位数位置上的值恰好等于百位数位置上的值加上个位数位置上的值,并且原四位数是偶数,则统计出满足此条件的元素个数 cnt,并把这些四位数按从小到大的顺序存人数组 b中,最后调用写函数 writeDat()把结果 cnt以及数组 b中符合条件的四位数输出到 out dat文件中。 【试题程序】 #include #define MAX 200 int aMAX, bMAX, cnt=0; void writeDat(); void jsVal() void readDat() Int 1; FILE*fp; fp=fopen(“in dat”, “r”); for(i=0Iibi) temp=bi; bi=bj; bj=tempi

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 4137-1994 Aerospace Series Bolts Normal Bi-Hexagonal Head Stepped Shank Long Thread in Titanium Alloy Anodized MoS2 Lubricated Classification 1 100 MPa (at Ambient Tempe.pdf AECMA PREN 4137-1994 Aerospace Series Bolts Normal Bi-Hexagonal Head Stepped Shank Long Thread in Titanium Alloy Anodized MoS2 Lubricated Classification 1 100 MPa (at Ambient Tempe.pdf
  • AECMA PREN 4138-1994 Aerospace Series Screws Pan Head Offset Cruciform Recess Coarse Tolerance Normal Shank Medium Length Thread in Alloy Steel Cadmium Plated Classification 1 100 .pdf AECMA PREN 4138-1994 Aerospace Series Screws Pan Head Offset Cruciform Recess Coarse Tolerance Normal Shank Medium Length Thread in Alloy Steel Cadmium Plated Classification 1 100 .pdf
  • AECMA PREN 4139-1993 Aerospace Series Screws Pan Head Offset Cruciform Recess Threaded to Head in Alloy Steel Cadmium Plated Classification 1 100 MPa (at Ambient Temperature) 235 D.pdf AECMA PREN 4139-1993 Aerospace Series Screws Pan Head Offset Cruciform Recess Threaded to Head in Alloy Steel Cadmium Plated Classification 1 100 MPa (at Ambient Temperature) 235 D.pdf
  • AECMA PREN 4139-1994 Aerospace Series Screws Pan Head Offset Cruciform Recess Threaded to Head in Alloy Steel Cadmium Plated Classification 1 100 MPa (at Ambient Temperature) 235 D.pdf AECMA PREN 4139-1994 Aerospace Series Screws Pan Head Offset Cruciform Recess Threaded to Head in Alloy Steel Cadmium Plated Classification 1 100 MPa (at Ambient Temperature) 235 D.pdf
  • AECMA PREN 4153-2009 Aerospace series Rivets solid universal head in aluminium alloy 2219 anodized or chromated metric series Edition P 1《航空航天系列.铝合金2219 万能头实心铆钉 阳极氧化或铬酸盐处理 公制系列.版本P.pdf AECMA PREN 4153-2009 Aerospace series Rivets solid universal head in aluminium alloy 2219 anodized or chromated metric series Edition P 1《航空航天系列.铝合金2219 万能头实心铆钉 阳极氧化或铬酸盐处理 公制系列.版本P.pdf
  • AECMA PREN 4154-2009 Aerospace series Rivet solid 100 degrees countersunk normal head in aluminium alloy 2219 anodized or chromated metric series Edition P1《航空航天系列.铝合金2219 100°标称埋头.pdf AECMA PREN 4154-2009 Aerospace series Rivet solid 100 degrees countersunk normal head in aluminium alloy 2219 anodized or chromated metric series Edition P1《航空航天系列.铝合金2219 100°标称埋头.pdf
  • AECMA PREN 4155-2009 Aerospace series Rivets solid 100 degrees countersunk normal head with dome in aluminium alloy 2219 anodized or chromated metric series Edition P 1《航空航天系列.铝合金2.pdf AECMA PREN 4155-2009 Aerospace series Rivets solid 100 degrees countersunk normal head with dome in aluminium alloy 2219 anodized or chromated metric series Edition P 1《航空航天系列.铝合金2.pdf
  • AECMA PREN 4157-1996 Aerospace Series Rod Ends with Self-Aligning Double Row Ball Bearings and Threaded Shank in Steel Dimensions and Loads Inch Series Edition P 1《航空航天系列.杆末端自动校准双排.pdf AECMA PREN 4157-1996 Aerospace Series Rod Ends with Self-Aligning Double Row Ball Bearings and Threaded Shank in Steel Dimensions and Loads Inch Series Edition P 1《航空航天系列.杆末端自动校准双排.pdf
  • AECMA PREN 4158-2005 Aerospace series Paints and varnishes Test method for measurements of electrical surface resistance of conductive layers Edition P 1《航空航天系列.传导层测试电表层阻抗油漆试验方法.P1.pdf AECMA PREN 4158-2005 Aerospace series Paints and varnishes Test method for measurements of electrical surface resistance of conductive layers Edition P 1《航空航天系列.传导层测试电表层阻抗油漆试验方法.P1.pdf
  • 相关搜索

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

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