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

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 47及答案与解析 一、程序设计题 1 设有 n个人坐一圈并按顺时针方向从 1到 n编号,从第 s个人开始进行 1到 m的报数。报数到第 m个人。此人出圈,再从他的下一个人重新开始从 1到 m报数。如此进行下去直到所有的人都出圈为止。先要求按出圈次序,每 10个人为一组,给出这 n个人的顺序表。请编写函数 Josegh()实现此功能,并调用函数 WriteDat()把编号按照出圈顺序输出到文件 out dat中。设 n=100, S=1。 m=10进行编程。 【试题程序】 #include #define N 100 #define S 1 #def

2、ine M 10 int p-loo, n, s, m; void WriteDat(void); void Josegh(void) void main() m=M; n=N; s=S; Josegh(); WriteDat(); void WriteDat(void) int i: FILE*fp; fp=fopen(”out dat”, ”W”); for(i=N一 1li=0;i一一 ) printf(” 4d” pi); fprintf(fp, 4 d, pi); if(i 10=O) printf(“、 n”) fprintf(fP, “ n”); fclose(fp); 计算机三级数据库技术(上机操作)机试模拟试卷 47答案与解析 一、程序设计题 1 【正确答案】 void Josegh(void) int i j, temp; *定义变量 * for(i=0; i=2; i一一 ) *依次出圈 * s=(s+m一 1) it temp=pFs; for(j=s; ji一 1, j+) pj=pj+1; pi1=temp;

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 3155-034-2005 Aerospace series Electrical contacts used in elements of connection Part 034 Contacts electrical triaxial size 08 male type D crimp class R Product standar.pdf AECMA PREN 3155-034-2005 Aerospace series Electrical contacts used in elements of connection Part 034 Contacts electrical triaxial size 08 male type D crimp class R Product standar.pdf
  • AECMA PREN 3155-035-2005 Aerospace series Electrical contacts used in elements of connection Part 035 Contacts electrical triaxial size 08 female type D crimp class R Product stand.pdf AECMA PREN 3155-035-2005 Aerospace series Electrical contacts used in elements of connection Part 035 Contacts electrical triaxial size 08 female type D crimp class R Product stand.pdf
  • AECMA PREN 3155-039-2001 Aerospace Series Electrical Contacts Used in Elements of Connection Part 039 Contacts Electrical Coaxial Size 16 Female Type D Solder Class R Product Stand.pdf AECMA PREN 3155-039-2001 Aerospace Series Electrical Contacts Used in Elements of Connection Part 039 Contacts Electrical Coaxial Size 16 Female Type D Solder Class R Product Stand.pdf
  • AECMA PREN 3155-040-2001 Aerospace Series Electrical Contacts Used in Elements of Connection Part 040 Contacts Electrical Coaxial Size 12 Male Type D Solder Class R Product Standar.pdf AECMA PREN 3155-040-2001 Aerospace Series Electrical Contacts Used in Elements of Connection Part 040 Contacts Electrical Coaxial Size 12 Male Type D Solder Class R Product Standar.pdf
  • AECMA PREN 3155-041-2001 Aerospace Series Electrical Contacts Used in Elements of Connection Part 041 Contacts Electrical Coaxial Size 12 Female Type D Solder Class R Product Stand.pdf AECMA PREN 3155-041-2001 Aerospace Series Electrical Contacts Used in Elements of Connection Part 041 Contacts Electrical Coaxial Size 12 Female Type D Solder Class R Product Stand.pdf
  • AECMA PREN 3155-042-1993 Aerospace Series Electrical Contacts Used in Elements of Connection Part 042 - Contacts Electrical Triaxial Size 08 Male 042 Type D Solder Class P Product .pdf AECMA PREN 3155-042-1993 Aerospace Series Electrical Contacts Used in Elements of Connection Part 042 - Contacts Electrical Triaxial Size 08 Male 042 Type D Solder Class P Product .pdf
  • AECMA PREN 3155-043-1993 Aerospace Series Electrical Contacts Used in Elements of Connection Part 043 - Contacts Electrical Triaxial Size 08 Female 043 Type D Solder Class P Produc.pdf AECMA PREN 3155-043-1993 Aerospace Series Electrical Contacts Used in Elements of Connection Part 043 - Contacts Electrical Triaxial Size 08 Female 043 Type D Solder Class P Produc.pdf
  • AECMA PREN 3155-044-1996 Aerospace Series Electrical Contacts Used in Elements of Connection Part 044 Contacts Electrical Male 044 Type A Double Crimping Class T Product Standard E.pdf AECMA PREN 3155-044-1996 Aerospace Series Electrical Contacts Used in Elements of Connection Part 044 Contacts Electrical Male 044 Type A Double Crimping Class T Product Standard E.pdf
  • AECMA PREN 3155-045-2003 Aerospace Series Electrical Contacts Used in Elements of Connection Part 045 Contacts Electrical Female Type A Double Crimping Class T Product Standard Edi.pdf AECMA PREN 3155-045-2003 Aerospace Series Electrical Contacts Used in Elements of Connection Part 045 Contacts Electrical Female Type A Double Crimping Class T Product Standard Edi.pdf
  • 相关搜索

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

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