- 1、本文档共24页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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},
您可能关注的文档
- 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
- 2022年七年级地理上册课时练习试卷带答案和解析.pdf
- 天下通单元测试卷八年级下册数学答案.pdf
- 全国教师管理信息系统教师基础信息指标及指标字典(中小学)16877.pdf
- 555定时电路控制八只彩灯数字电路.pdf
- 河南省濮阳市2023-2024学年高二上学期11月期中学业质量检测地理试卷(含答案).pdf
- 河南省南阳市淅川县2022-2023学年七年级上学期期末历史试题.pdf
- 沥青混凝土路面施工方案.pdf
- 汽车空调系统故障诊断及维修毕业论文开题报告.pdf
- 江苏省江阴市华士片2022-2023学年七年级下学期期中考试历史试题(含答案).pdf
- 内蒙古自治区通辽市地理七年级下册期末测试卷8(解析版).pdf
文档评论(0)