- 1、本文档共24页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
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},
您可能关注的文档
- 2014英国剑桥大学申请条件介绍(2014 University of Cambridge introduced the application conditions).doc
- 2015国考行测判断推理每日一练(11.1)(In the 2015 test line test judgment practice a day (11.1)).doc
- 2015年北京大学汇丰商学院考研必看经验.doc
- 2013货币政策稳中有进(2013 monetary policy steady progress).doc
- 2015年南开大学翻译硕士专业mti考研复习大纲(2015 Nankai University master of translation professional MTI review outline).doc
- 2015年普通高等学校招生全国统一考试(四川卷)考试说明及题型示例(历史)(In 2015, the unified national college entrance examination (Sichuan volume) instructions and sample questions (History)).doc
- 2015年最流行的男孩女孩英文名字推荐大全(Boys and girls in 2015 the most popular English recommended name Daquan).doc
- 2015高考物理一轮复习课时跟踪检测(十二)牛顿运动定律的综合应用(二)试题及完整解析答案-39 - 副本(2015 college entrance examination physics a review class tracking detection (twelve) comprehensive application of Newton's law of motion (two) questions and.doc
- 2014期末(At the end of 2014).doc
- 20种ps技术(20 kinds of PS Technology).doc
最近下载
- 2024年职业院校技能大赛(新能源汽车维修赛项)考试题库(院校下发版) .docx VIP
- 建筑工程施工全过程跟踪审计实施方案.pdf
- AI助力英语高效课堂教学与个性化学习课件.pptx VIP
- 中国血脂管理指南(2023+年).pdf VIP
- 地下停车场车库设计规范.doc VIP
- 国家能源集团电力产业技术监督实施细则-第1部分 火电产业绝缘技术监督.pdf VIP
- 2025年吉林省初中学业水平考试(中考)语文真题(含答案).docx VIP
- 健身拉伸知识PPT课件.pptx VIP
- 地下停车场设计规范方案.pdf VIP
- Unit 4 Healthy food教案 人教PEP英语(2025)三年级下册.docx VIP
文档评论(0)