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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 40及答案与解析 一、程序设计题 1 已知数据文件 in dat中存有 200个四位数,并已调用读函数 readDat()把这些数存人数组 a中请编写函数 jsVal()其功能是:把千位数字和十位数字重新组成一个新的含有两位数字的数 ab(新数的十位数字是原四位数的千位数字,新数的个位数字是原四位数的十位数字 ),以及把个位数字和百位数字组成另一个新的含有两位数字的数 cd(新数的十位数字是原四位数的个位数字,新数的个位数字是原四位数的百位数字 ),如果新组成的两个数 abcd, ab必须是偶数且能被 5整除, cd必须是奇数,同时两个新数的十位数

2、字均不为零,则将满足此条件的四位数按从大到小的顺序存入数组 b中,并要计算满足上述条件的四位数的个数 cnt。最后 main()函数调用写函数 writeDat()把结果 cnt以及数组 b中符合条件的四位数输出到out dat文件中。 【试题程序】 #include #define MAX 200 int aMAX, bMAX, cnt=0; void writeDat(); void jsVal() void readDat() int i; FILE*fp; fp=fopen(“in dat”, “r”); for(i=0Iicd icnt一 1; i+) *选择法排序 * for(j=i+1;jcntIj+) if(bibj) temp=bi; bi=bj; bj=temp;

展开阅读全文
相关资源
猜你喜欢
  • ASTM C1673-2010a(2018) Standard Terminology of C26 10 Nondestructive Assay Methods《C26 10无损检测方法标准术语》.pdf ASTM C1673-2010a(2018) Standard Terminology of C26 10 Nondestructive Assay Methods《C26 10无损检测方法标准术语》.pdf
  • ASTM C1673-2010ae1 Standard Terminology of C26 10 Nondestructive Assay Methods《C26 10无损试验方法的标准术语》.pdf ASTM C1673-2010ae1 Standard Terminology of C26 10 Nondestructive Assay Methods《C26 10无损试验方法的标准术语》.pdf
  • ASTM C1674-2008 Standard Test Method for Flexural Strength of Advanced Ceramics with Engineered Porosity (Honeycomb Cellular Channels) at Ambient Temperatures《环境温度下带工业孔隙(蜂窝状孔道)的高级陶.pdf ASTM C1674-2008 Standard Test Method for Flexural Strength of Advanced Ceramics with Engineered Porosity (Honeycomb Cellular Channels) at Ambient Temperatures《环境温度下带工业孔隙(蜂窝状孔道)的高级陶.pdf
  • ASTM C1674-2011 Standard Test Method for Flexural Strength of Advanced Ceramics with Engineered Porosity (Honeycomb Cellular Channels) at Ambient Temperatures《环境温度下带工业孔隙(蜂窝状孔道)的高级陶.pdf ASTM C1674-2011 Standard Test Method for Flexural Strength of Advanced Ceramics with Engineered Porosity (Honeycomb Cellular Channels) at Ambient Temperatures《环境温度下带工业孔隙(蜂窝状孔道)的高级陶.pdf
  • ASTM C1674-2016 Standard Test Method for Flexural Strength of Advanced Ceramics with Engineered Porosity (Honeycomb Cellular Channels) at Ambient Temperatures《环境温度下工程孔隙率(蜂窝通道)高级陶瓷弯.pdf ASTM C1674-2016 Standard Test Method for Flexural Strength of Advanced Ceramics with Engineered Porosity (Honeycomb Cellular Channels) at Ambient Temperatures《环境温度下工程孔隙率(蜂窝通道)高级陶瓷弯.pdf
  • ASTM C1675-2011(2015) Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞 暴雨排水沟和下水道所用的预制钢筋混凝土整体方形管的安装的.pdf ASTM C1675-2011(2015) Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞 暴雨排水沟和下水道所用的预制钢筋混凝土整体方形管的安装的.pdf
  • ASTM C1675-2017 Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞 暴雨排水沟和下水道用预制钢筋混凝土整体方形管安装的标准实施规程》.pdf ASTM C1675-2017 Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞 暴雨排水沟和下水道用预制钢筋混凝土整体方形管安装的标准实施规程》.pdf
  • ASTM C1675-2017a Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞 暴雨排水沟和下水道用预制钢筋混凝土整体方形管安装的标准实施规程》.pdf ASTM C1675-2017a Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞 暴雨排水沟和下水道用预制钢筋混凝土整体方形管安装的标准实施规程》.pdf
  • ASTM C1675-2018 Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞雨水管和下水道用预制钢筋混凝土整体箱形截面安装的标准实施规程》.pdf ASTM C1675-2018 Standard Practice for Installation of Precast Reinforced Concrete Monolithic Box Sections for Culverts Storm Drains and Sewers《涵洞雨水管和下水道用预制钢筋混凝土整体箱形截面安装的标准实施规程》.pdf
  • 相关搜索

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

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