题目内容

学生记录由学号和成绩组成,N名学生的数据已放入主函数中的结构体数组中,请编写函数fun,其功能是:把分数最低的学生数据放入b所指的数组中。注意:分数最低的学生可能不止一个,函数返回分数最低的学生人数。 注意:部分源程序在文件PROG1.C中。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入你编写的若干语句。 #include <stdio.h> #deftne N 16 typedef struct {char num[10]; int s; }STREC; mt fun( STREC * a, STREC * b ) { } main( ) { STREC s[N] = {{"GA05" ,85 }, {"GA03" ,76}, {"GA02",69}, {"GA04",85}, {"GA01",91},{"GA07",72},{"GA08",64},{"GA06",87}, {"GA015",85}, {"GA013",91},{"GA012",64}, {" GA014",91/, {"GA011",91}, {"GA017",64},{"GA018",64},{"GA016",72t}}; STREC h[N]; int i,n; FILE * out; n=fun(s,h); printf("The % d lowest score :\n",n); for(i=0;i<n; i+ +) printf("% s %4d\n", h[i]. num,h[i].s); printf(" \n"); out=fopen("out.dat","w"); fprintf(out,"% d\n",n); for(i=0;i<n;i+ +) fprintf(out,"%4d\n",h[i].s); fclose (out); }

查看答案
更多问题

Questions 4 to 6 are based on the following passage. At the end of the passage, you will be given 15 seconds to answer the questions. Now, listen to the passage. What can we learn from the passage

A. The campaign is doomed to be a failure.
B. Giving up smoking for 28 days, one is sure to say goodbye to cigarette.
C. The campaign is a support for smokers to make up their mind to quit smoking.
D. To quit smoking, one doesn’t need support.

患儿,9岁,高热、惊厥,有里急后重感2天。询问有不洁饮食史,最可能发生的情况是

A. 败血症
B. 急性肺炎
C. 急性细菌性痢疾
D. 急性上呼吸道感染
E. 急性泌尿道感染

In this section, you will hear several passages. Listen to the passages carefully and then answer the questions that follow. Questions 1 to 3 are based on the following passage. At the end of the passage, you will be given 15 seconds to answer the questions. Now, listen to the passage. Which is NOT mentioned as an employee’s good personal habits

A. Sanitation.
B. Self-control.
C. Hardworking.
D. Trustworthy.

患儿,2岁,结核菌素试验结果硬结直径8mm,2天后消失,正确的判断是

A. 未接触过结核杆菌
B. 曾受过自然感染
C. 接种过卡介苗
D. 潜伏性感染
E. 活动性结核

答案查题题库