皮皮学,免费搜题
登录
搜题
【简答题】
下列给定,函数fun()的功能是:从n个学生的成绩中统计出高于平均分的学生人数,人数由函数值返回,平均分存放在形参aver所指的存储单元中。例如输入8名学生的成绩: 85 65.5 69 95.5 87 55 62.5 75 则高于平均分的学生人数为4(平均分为74.312500)。 请改正的错误,使它能得到正确结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include <stdio.h> include <conio.h> define N 20 int fun(float *S,int n,float *aver) { /*************found*************/ int ave,t=0; int count=0,k,i; for(k=0;k<n;k++) t+=s[k]; ave=t/n; for(i=0;i<n;i++) /*************found***************/ if(s[i]<ave) count++; /*************found*************/ aver=ave; return count; } main() { float S[30],aver; int m,i; clrscr(); printf('/nPlease enter m:'); scanf('%d',&m); printf('/nPlease enter%d mark:/n',m); for(i=0;i<m;i++) scanf('%f',s+i); printf('/nThe number of students:%d/n', fun(S,m,&aver)); printf(“AVe=%f/n”,aver); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】依次填入下面横线处最恰当的词语是( ▲ )。
A.
孤单 亲切
B.
孤独 亲近
C.
孤单 亲近
D.
孤独 亲切
【简答题】拟态,是指某些生物在进化过程中具有与另一种生物或周围自然界物体的相似的形态,这种相似性很高,几乎难以分辨,可以保护某一物种或两个物种。 根据上述定义,下列选项属于拟态的是( ) A.海豚、企鹅和带鱼虽然分别属于鲸类、鸟类和鱼类,但为了适应海洋生活,都进化出了流线形的身体 B.北极熊生活在白雪皑皑的北极,为了掩护自己捕食时不被猎物过早发现,皮毛逐渐变成与周围环境相似的白色 C.大鲵,俗名娃娃鱼,已在...
【单选题】【A1 题型】 医学领域中,护理伦理学的研究对象主要是
A.
道德修养
B.
道德教育
C.
道德现象
D.
道德规范
E.
道德理论
【单选题】Thousands of Irish people starved during the 'Potato Famine' because.
A.
they were so dependent on potatoes that they refused to eat anything else.
B.
they were forced to leave their homeland and move to America.
C.
the weather conditions in Ireland were not suitable for growing potatoes.
D.
the potato harvest was bad.
【简答题】某生物小组在一次实地考察中,观察到了下列几种动物。其中有的还是人类的好朋友,可是却很难区分它们,请你根据所学知识,帮助他们解决问题: (1)A(蚯蚓)用_________呼吸,B用_________呼吸,E用_________呼吸。 (2)A与B、C、D、E的主要区别是身体背部没有____________。 (3)从B的生殖发育特点分析,它不能脱离水环境限制的原因是________________...
【简答题】依次填入下面横线处最恰当的词语是( ▲ )。
【单选题】W: Why are there so many people in line today? I’m here every Wednesday afternoon, and it’s never this bad. M: Maybe it’s because of the special sale today. W: What sale? Why is the woman in l...
A.
She’s waiting for a bus.
B.
She's waiting for someone.
C.
She's waiting to see a film.
D.
She's waiting to buy something.
【判断题】灌注混凝土桩使用预制桩尖,单打、复打桩体积按设计桩长(含桩尖)另加 250mm 乘以标准管截面积以立方米计算。
A.
正确
B.
错误
【单选题】拟态,是指某些生物在进化过程中具有另一种生物或周围自然界物体的相似的形态,这种相似性很高,几乎难以分辨,可以保护某一物种或两个物种。根据上述定义,下列选项属于拟态的是()
A.
海豚,企鹅和带鱼显然分别属于鲸类、鸟类和鱼类,但为了适应海洋生活,都进化出来了流线型的身体
B.
北极熊生活在白雪皑皑的北极,为掩护自己捕食时不被植物过早发现,皮毛逐渐变成与环境相似的白色
C.
杜鹃会将与宿主卵酷似的卵产在宿主巢内,其雏鸟在孵出后不久就会将宿主雏鸟挤出巢外,独享体型只有一个半大小的宿主父母的喂食
D.
大鲵,俗称娃娃鱼,已在地球上生活了数亿年,其受到刺激时的叫声酷似人类婴儿哭声,让人听到不忍心伤害,对一些猎食动物也有威慑作用
【单选题】W: Why are there so many people in the line today ? I’m here every Wednesday afternoon, and it’s never this bad. M : May be it’s because of the special sale today. W: What sale ? ( )25.Why is the wo...
A.
She’s waiting for a bus.
B.
she’s waiting for someone.
C.
She’s waiting to buy something
D.
She’s waiting to see a film.
相关题目: