2012年9月考前押题c语言

2012年9月考前押题c语言

ID:16869594

大小:1.40 MB

页数:32页

时间:2018-08-25

2012年9月考前押题c语言_第1页
2012年9月考前押题c语言_第2页
2012年9月考前押题c语言_第3页
2012年9月考前押题c语言_第4页
2012年9月考前押题c语言_第5页
资源描述:

《2012年9月考前押题c语言》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、以下是资料上没有的题目和做完的答案#includedoublefun(doublex,intn){doublef,t;inti;f=1.0;/**********found**********/t=1.0;/**********found**********/for(i=1;i

2、y);}#include#includevoidfun(char*s,chart[])forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans{int

3、i,n=0;for(i=0;s[i];i++)if(s[i]%2==0)t[n++]=s[i];t[n]=’’;}main(){chars[100],t[100];voidNONO();printf("PleaseenterstringS:");scanf("%s",s);fun(s,t);printf("Theresultis:%s",t);NONO();}voidNONO(){/*本函数用于打开文件,输入数据,调用函数,输出数据,关闭文件。*/chars[100],t[100];FILE*rf,*wf;inti;rf=fopen("K:\K181\24010004\

4、in.dat","r");wf=fopen("K:\K181\24010004\out.dat","w");for(i=0;i<10;i++){fscanf(rf,"%s",s);fun(s,t);fprintf(wf,"%s",t);}fclose(rf);fclose(wf);}#includedoublefun(intm){doublet=1.0;inti;for(i=2;i<=m;i++)forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesof

5、checks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans/**********found**********/t+=1.0/k;->t+=1.0/i;/**********found**********/returnt;}main(){intm;printf("Pleaseenter1integernumber:");scanf("%d",&m);pr

6、intf("Theresultis%lf",fun(m));}#includevoidfun(inta,intb,long*c){intgw,sw,bw,qw;qw=b%10;bw=a%10;sw=b/10;gw=a/10;*c=qw*1000+bw+100+sw*10+gw;}main(){inta,b;longc;voidNONO();printf("Inputab:");scanf("%d%d",&a,&b);fun(a,b,&c);printf("Theresultis:%ld",c);NONO();}voidNONO(){/*本函数用于打开文件,输入数

7、据,调用函数,输出数据,关闭文件。*/FILE*rf,*wf;inti,a,b;longc;rf=fopen("K:\K181\24010006\in.dat","r");wf=fopen("K:\K181\24010006\out.dat","w");forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whe

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

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

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