学生记录由学号和成绩组成,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.
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.