c 题集1_填空(C question sets 1_ fill in the blanks).doc

c 题集1_填空(C question sets 1_ fill in the blanks).doc

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

c 题集1_填空(C question sets 1_ fill in the blanks) C set 2_ rare treasure: Rand | Land Rover my message (0/3) | space | Baidu home page | Baidu space | my exit Thin treasure: where are you from, my friend, you are like a butterfly flying into my window! The home page blog album | profile view articles C question set 22007-06-29 21:24 topic: Receive 20 integers from the keyboard, count the number of positive numbers, and the sum of all positive numbers. #include stdio.h (main) {int, I, a[20], count; Long sun=0; For (i=0; i20; i++) Scanf (%d, ___); /*$BLANK1$*/ Count=___; /*$BLANK2$*/ For (i=0; i20; i++) {if (a[i]0) {sun+=a[i]; ___; /*$BLANK3$*/ } } Printf (%d, %ld, count, sun); } 1:, a[i], or a+i 2: 0 3:, count++, or count=count+1 Subject: Output the following figures (no spaces between numbers, no spaces before each line first) 0001000 0011100 0111110 One million one hundred and eleven thousand one hundred and eleven 0111110 0011100 0001000 Procedures are as follows: #include math.h (main) { Int, I, j; For (i=-3; i=3; i++) { J=1; While (j__abs (I)) /*$BLANK1$*/ {printf (0); j++;} J=1; While (j__7-2*abs (I)) /*$BLANK2$*/ {printf (1); j++;} J=1; While (j__) /*$BLANK3$*/ {printf (0); j++;} Printf (\n); } } = 1: = 2: 3: =abs (I) Subject: The following program enters a line of characters (enter at the end of the carriage), and then changes all of the charactersbto charactersf. #includestdio.h #includestring.h Main () {char s[80]; Int i; Gets (s); ___ /*$BLANK1$*/ While (s[i] /*$BLANK2$*/ =___!) {if (s[i]==,b) S[i]=f; ___ /*$BLANK3$*/ } Printf (%s\n, s); } 1: i=0; 2:\0 3: i++; Subject: The following procedures will record the number of students who failed and count the students who failed. Please fill in the blanks. (Num domains represent student numbers, name domains represent names, and score domains represent grades) Struct stu {int num; Char name[12]; Float score; }; Main () {___stud[5]={, {101, Li, Ping, 45}, /*$BLANK1$*/ {102, Zhang Ping, 62.5}, {103, He Fang, 92.5},

您可能关注的文档

文档评论(0)

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

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

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档