[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷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

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 3273-1989 Aerospace Series Pipe Coupling 8 Degress 30' Dynamic Beam Seal End for Elbows Tees and Crosses Geometric Configuration Issue P 1《航空航天系列.导管接头8°30′钛合金动态密封带奶嘴肘和棒锻.pdf AECMA PREN 3273-1989 Aerospace Series Pipe Coupling 8 Degress 30' Dynamic Beam Seal End for Elbows Tees and Crosses Geometric Configuration Issue P 1《航空航天系列.导管接头8°30′钛合金动态密封带奶嘴肘和棒锻.pdf
  • AECMA PREN 3274-1989 Aerospace Series Pipe Coupling 8 Degrees 30' Thread End Geometric Configuration Issue P 1《航空航天系列.导管接头8°30′终螺纹几何图形.P1版》.pdf AECMA PREN 3274-1989 Aerospace Series Pipe Coupling 8 Degrees 30' Thread End Geometric Configuration Issue P 1《航空航天系列.导管接头8°30′终螺纹几何图形.P1版》.pdf
  • AECMA PREN 3275-1993 (CANCELLED) Aerospace Series Pipe Coupling 8 Degrees 30' Dynamic Beam Seal up to 28 000 kPa Metric Series Technical Specification Edition P 1《航空航天系列.导管接头8°30′钛.pdf AECMA PREN 3275-1993 (CANCELLED) Aerospace Series Pipe Coupling 8 Degrees 30' Dynamic Beam Seal up to 28 000 kPa Metric Series Technical Specification Edition P 1《航空航天系列.导管接头8°30′钛.pdf
  • AECMA PREN 3276-1988 Aerospace Series Clamps Loop ( P  Type) without Rubber Cushioning in Corrosion Resisting Steel Dimensions - Masses Edition 1《航空航天系列.无橡胶缓冲器防腐蚀钢尺寸--质量.第1版》.pdf AECMA PREN 3276-1988 Aerospace Series Clamps Loop ( P Type) without Rubber Cushioning in Corrosion Resisting Steel Dimensions - Masses Edition 1《航空航天系列.无橡胶缓冲器防腐蚀钢尺寸--质量.第1版》.pdf
  • AECMA PREN 3278-1988 Aerospace Series Sleeves Tubular Protruding Head in Corrosion Resisting Steel Passivated (0 25 mm Wall Thickness) Issue P 1《航空航天系列.管状突出袖防腐蚀钢钝化(0 25 mm 墙厚度)》.pdf AECMA PREN 3278-1988 Aerospace Series Sleeves Tubular Protruding Head in Corrosion Resisting Steel Passivated (0 25 mm Wall Thickness) Issue P 1《航空航天系列.管状突出袖防腐蚀钢钝化(0 25 mm 墙厚度)》.pdf
  • AECMA PREN 3280-1989 Aerospace Series Bearings Airframe Rolling Rigid or Self-Aligning Technical Specification Issue P 1《航空航天系列.机身旋转轴承自动找平.P1版》.pdf AECMA PREN 3280-1989 Aerospace Series Bearings Airframe Rolling Rigid or Self-Aligning Technical Specification Issue P 1《航空航天系列.机身旋转轴承自动找平.P1版》.pdf
  • AECMA PREN 3281-1987 Aerospace Series Bearings-Airframe Rolling Rigid Single Row Ball Bearings in Steel Diameter Series 8 and 9 Dimensions Torques Clearances and Loads Issue P 1《航空.pdf AECMA PREN 3281-1987 Aerospace Series Bearings-Airframe Rolling Rigid Single Row Ball Bearings in Steel Diameter Series 8 and 9 Dimensions Torques Clearances and Loads Issue P 1《航空.pdf
  • AECMA PREN 3282-1987 Aerospace Series Bearings-Airframe Rolling Rigid Single Row Ball Bearings in Steel Cadmium Plated Diameter Series 8 and 9 Dimensions Torques Clearances and Loa.pdf AECMA PREN 3282-1987 Aerospace Series Bearings-Airframe Rolling Rigid Single Row Ball Bearings in Steel Cadmium Plated Diameter Series 8 and 9 Dimensions Torques Clearances and Loa.pdf
  • AECMA PREN 3283-1987 Aerospace Series Bearings-Airframe Rolling Rigid Single Row Ball Bearings in Corrosion Resisting Steel Diameter Series 8 and 9 Dimensions Torques Clearances an.pdf AECMA PREN 3283-1987 Aerospace Series Bearings-Airframe Rolling Rigid Single Row Ball Bearings in Corrosion Resisting Steel Diameter Series 8 and 9 Dimensions Torques Clearances an.pdf
  • 相关搜索

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

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