二级c语言上机真题及答案(Two C language Zhenti and answers)

二级c语言上机真题及答案(Two C language Zhenti and answers)

ID:42296850

大小:99.50 KB

页数:45页

时间:2019-09-12

二级c语言上机真题及答案(Two C language Zhenti and answers)_第1页
二级c语言上机真题及答案(Two C language Zhenti and answers)_第2页
二级c语言上机真题及答案(Two C language Zhenti and answers)_第3页
二级c语言上机真题及答案(Two C language Zhenti and answers)_第4页
二级c语言上机真题及答案(Two C language Zhenti and answers)_第5页
资源描述:

《二级c语言上机真题及答案(Two C language Zhenti and answers)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、二级c语言上机真题及答案(TwoClanguageZhentiandanswers)103F1.mpersonalresultsstoredinthescorearray,pleasewritefunctionfun,itsfunctionis:lowerthantheaveragescoreasafunctionvaluetoreturn,lowerthantheaveragescoreplacedinthebelowspecifiedfunction.1.intfun(intscore[],intm,intbelow[]){intI,k=0,aver=0;For(I-0;i

2、ver+=score[i];Aver/=m;For(i=0,i

3、(int*a,int*n){intI,j=0;For(i=2;i<1000;i++)If((i%7==0//i%11==0))&i%77!=0)A[j++]=i;*n=j;}3.pleasewritethefunctionvoidfun(intx,intpp[],int*n),itsfunctionistocalculatetheintegers:Xandisnoteven,andthearrayonthePPreferredtotheorderfromsmalltolarge,thedivisorofthenumberreturnedthroughtheparametern.3.voidfu

4、n(intx,intpp[],int*n){inti=1,j=0,k=0,*t=pp;For(i=0;i<=x;i++)If(i%2!=0){t[j]=i;J++;}For(i=0;i

5、ntpp[]){inti;For(i=0;i<26;i++)Pp[i]=0;While(*tt){switch(*tt){case'a':pp[0]++;break;Case'b':pp[1]++;break;Case'c':pp[2]++;break;Case'd':pp[3]++;break;Case'e':pp[4]++;break;Case'f':pp[5]++;break;Case'g':pp[6]++;break;Case'h':pp[7]++;break;Case'i':pp[8]++;break;Case'j':pp[9]++;break;Case'k':pp[10]++;br

6、eak;Case'l':pp[11]++;break;Case'm':pp[12]++;break;Case'n':pp[13]++;break;Case'o':pp[14]++;break;Case'p':pp[15]++;break;Case'q':pp[16]++;break;Case'r':pp[17]++;break;Case's':pp[18]++;break;Case't':pp[19]++;break;Case'u':pp[20]++;break;Case'v':pp[21]++;break;Case'w':pp[22]++;break;Case'x':pp[23]++;bre

7、ak;Case'y':pp[24]++;break;Case'z':pp[25]++;break;}Tt++;}}5.writeafunctionvoidfun(intm,intk,intxx[]),thefunctionofthefunctionis:willbegreaterthantheintegermandclosetotheMKeachprimeintotheXXreferstothea

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。