网站大量收购独家精品文档,联系QQ:2885784924

二级C一版不包含程序设计题.pdf

  1. 1、本文档共120页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
二级C一版不包含程序设计题

呼和浩特市聪智职业培训学校 内部资料 请勿外传 聪智 ·学校二级C 上机考试复习资料 V16.0 (共50 套题目) 第1 套 聪智·学校上机考试复习资料 1、程序填空题 #include stdio.h #include math.h double fun(double x) { double f, t; int n; f = 1.0 + x; /**********found**********/ t = ___1___; n = 1; do { n++; /**********found**********/ t *= (-1.0)*x/___2___; f += t; } /**********found**********/ while (___3___ = 1e-6); return f; } main() { double x, y; x=2.5; y = fun(x); printf(\nThe result is :\n); printf(x=%-12.6f y=%-12.6f\n, x, y); } 本资料仅供考前复习使用,请勿带入考场 1 呼和浩特市聪智职业培训学校 内部资料 请勿外传 2、程序修改题 聪智·学校上机考试复习资料 #include stdio.h long fun(int x,int y,long *p ) { int i; long t=1; /**************found**************/ for(i=1; iy; i++) t=t*x; *p=t; /**************found**************/ t=t/1000; return t; } main() { long t,r; int x,y; printf(\nInput x and y: ); scanf(%ld%ld,x,y); t=fun(x,y,r); printf(\n\nx=%d, y=%d, r=%ld, last=%ld\n\n,x, y,r,t ); } 3、程序设计题 聪智·学校上机考试复习资料 #include stdio.h #include math.h double fun(double x) { } main() { double x,s; 本资料仅供考前复习使用,请勿带入考场 2 呼和浩特市聪智职业培训学校 内部资料 请勿外传 printf(Input x: ); scanf(%lf,x); s=fun(x); printf(s=%f\n,s); } 第2 套 聪智·学校上机考试复习资料 1、程序填空题 #include stdio.h int c1,c2,c3; void fun(long n) { c1 = c2 = c3 = 0; while (n) { /**********found**********/ switch(___1___) { /**********found**********/ case 1: c1++;___2___; /**********found**********/ case 2: c2++;___3___; case 3: c3++; } n /= 10; } } main() { long n=123114350L; fun(n); printf(\nThe result :\n); printf(n=%ld c1=%d c2=%d c3=%d\n,n,c1,c2,c3)

文档评论(0)

woai118doc + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档