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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 59及答案与解析 一、程序设计题 1 请编写函数 void countValue(int*a, int*n),其功能是:求出 1到 1000之内能被 7或 11整除但不能同时被 7和 11整除的所有整数,其结果按从小到大的顺序存放在数组 a中,并通过形式参数 n传递这些数的个数。 【试题程序】 #include #include void writeDAT(); void countValue(int*a, int*n) main() int aa1000, n, k; countValue(aa, for(k=0; kn;k+) if(k+1)

2、10=0) printf(“M5d n”, aak); else printf(“M5d”, aak); writeDAT(); void writeDAT() int aa1000, n, k; FILE*fp; fp=fopen(“out dat”, “w”); countValue(aa, felose(fp), 计算机三级数据库技术(上机操作)机试模拟试卷 59答案与解析 一、程序设计题 1 【正确答案】 void countValue(int*a int*n) int i; *定义变量 * *n=0; *初始化变量 * for(i=1;i=1000; i+) *统计复制 * if(i 7=0 8L i 11!=0 i 7!= 0& i 11=0) a(*n)+=i

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 4029-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Tees Bulkhead Branch (Edition P1)《航空航天系列 钛合金制8°30'管接头 穿壁分支T形接头 第P1版》.pdf ASD-STAN PREN 4029-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Tees Bulkhead Branch (Edition P1)《航空航天系列 钛合金制8°30'管接头 穿壁分支T形接头 第P1版》.pdf
  • ASD-STAN PREN 4030-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Tees Bulkhead Run (Edition P1)《航空航天系列 钛合金制8°30'管接头 穿壁式T形接头 第P1版[替代 ASD-STAN PREN 3263]》.pdf ASD-STAN PREN 4030-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Tees Bulkhead Run (Edition P1)《航空航天系列 钛合金制8°30'管接头 穿壁式T形接头 第P1版[替代 ASD-STAN PREN 3263]》.pdf
  • ASD-STAN PREN 4031-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Nuts for Welded Union (Edition P1)《航空航天系列 钛合金制8°30'管接头 焊接连接用螺母 第P1版》.pdf ASD-STAN PREN 4031-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Nuts for Welded Union (Edition P1)《航空航天系列 钛合金制8°30'管接头 焊接连接用螺母 第P1版》.pdf
  • ASD-STAN PREN 4032-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Thrust Wire (Edition P1)《航空航天系列 带止推金属丝的钛合金制8°30'管接头 第P1版[替代 ASD-STAN PREN 3271]》.pdf ASD-STAN PREN 4032-1994 Aerospace Series Pipe Coupling 8 Degrees 30' in Titanium Alloy Thrust Wire (Edition P1)《航空航天系列 带止推金属丝的钛合金制8°30'管接头 第P1版[替代 ASD-STAN PREN 3271]》.pdf
  • ASD-STAN PREN 4033-1996 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Corrosion Resisting Steel Diameter Series 8 and 9 Reduced Internal Radial Clear.pdf ASD-STAN PREN 4033-1996 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Corrosion Resisting Steel Diameter Series 8 and 9 Reduced Internal Radial Clear.pdf
  • ASD-STAN PREN 4034-1996 Aerospace Series Bearings Airframe Rolling Double Row Self- Aligning Ball Bearings with Flanged Outer Ring in Corrosion Resisting Steel Reduced Internal Rad.pdf ASD-STAN PREN 4034-1996 Aerospace Series Bearings Airframe Rolling Double Row Self- Aligning Ball Bearings with Flanged Outer Ring in Corrosion Resisting Steel Reduced Internal Rad.pdf
  • ASD-STAN PREN 4035-1996 Aerospace Series Rod Ends Adjustable with Self-Aligning Double Row Ball Bearing in Corrosion Resisting Steel Reduced Internal Radial Clearance and Threaded .pdf ASD-STAN PREN 4035-1996 Aerospace Series Rod Ends Adjustable with Self-Aligning Double Row Ball Bearing in Corrosion Resisting Steel Reduced Internal Radial Clearance and Threaded .pdf
  • ASD-STAN PREN 4036-1996 Areospace Series Rod Ends Adjustble with Self-Aligning Double Row Ball Bearing and Threaded Shank in Corrosion Resisting Steel Reduced Internal Radial Clear.pdf ASD-STAN PREN 4036-1996 Areospace Series Rod Ends Adjustble with Self-Aligning Double Row Ball Bearing and Threaded Shank in Corrosion Resisting Steel Reduced Internal Radial Clear.pdf
  • ASD-STAN PREN 4037-1996 Aerospace Series Bearings Spherical Plain in Corrosion Resisting Steel with Self-Lubricating Liner Reduced Starting Torque Light Series Dimensions and Loads.pdf ASD-STAN PREN 4037-1996 Aerospace Series Bearings Spherical Plain in Corrosion Resisting Steel with Self-Lubricating Liner Reduced Starting Torque Light Series Dimensions and Loads.pdf
  • 相关搜索

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

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