皮皮学,免费搜题
登录
搜题
【简答题】
//结构体应用示例――处理多个学生多门课组成的成绩表 //编一个程序,输入某个班N个人的姓名、性别、年龄、平时、笔试、操作这几项信息,计算每个人的平均成绩,按平均成绩降序排序,再输出完整的成绩表,如表所示。 //请选择空白位置的正确内容 #include "stdio.h" #include "stdlib.h" #include "string.h" #define N 5 //假设总人数为5,可根据需要修改 int main() { struct student_info//定义结构体类型 { char name[7]; //姓名 char sex[5]; //性别 unsigned int age; //年龄 int pingshi; //平时 int bishi; //笔试 int caozuo; //操作 double average; //平均 }; struct student_info stu[N+1];//定义结构体数组stu,0号元素不存放有效数据 int i,j; printf("\n输入%d个人的相关信息(姓名、性别、年龄、平时、笔试、机试):\n",N); //以下循环输入各人相关原始信息并存入结构体数组stu,同时计算各人平均成绩 for(i=1;i<=N;i++) { printf("\nNo.%d:",i); scanf("%s%s%d%d%d%d",stu[i].name,stu[i].sex,&stu[i].age,&stu[i].pingshi,&stu[i].bishi,&stu[i].caozuo); stu[i].average=(stu[i].pingshi+stu[i].bishi+stu[i].caozuo)/3.0; } //以下二重循环按平均成绩排序 for(j=1;j<=N-1;j++) for(i=j+1;i<=N;i++) if(stu[j].average
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【多选题】What are the principles for teaching speaking?
A.
Personalising practice
B.
Providing sufficient language input and practice
C.
Helping students develop speaking strategies
D.
Contextualising practice
E.
Building up students' confidence
【单选题】下面这篇文章如果作为参考文献,那么其正确格式应该是:【图片】
A.
Arnon, I., McCauley, M. S., & Christiansen, H. M. (2017). Digging up the building blocks of language: Age-of-acquisition effects for multiword phrases. Journal of Memory and Language , 92, 265-280.
B.
Arnon, I., McCauley, M. S., & Christiansen, H. M. Digging up the building blocks of language: Age-of-acquisition effects for multiword phrases. (2017). Journal of Memory and Language, 92 , 265-280.
C.
Arnon, I., McCauley, M. S., & Christiansen, H. M. Digging up the building blocks of language: Age-of-acquisition effects for multiword phrases. (2017). Journal of Memory and Language, 92, 265-280.
D.
Arnon, I., McCauley, M. S., Christiansen, H. M. (2017). Digging up the building blocks of language: Age-of-acquisition effects for multiword phrases. Journal of Memory and Language, 92, 265-280
【单选题】Which of the following is not true of Ravensburger jigsaw puzzles?
A.
Most of them are bought as gifts.
B.
The jigsaw puzzles fall apart when they are picked up by the corner.
C.
Rembrandts and Renoirs are common pictures for jigsaw framing.
【单选题】胸部损伤外科治疗原则:
A.
纠正酸碱平衡失调
B.
纠正电解质紊乱
C.
给予脱水利尿剂
D.
给予止痛输血
E.
纠正呼吸循环障碍
【简答题】胸部损伤外科治疗原则是( )。
【简答题】English is the most widely used language in the world. Methods( 方法 ) of learning English have been improved greatly since the beginning of this century. Learning a language is not just a matter of kno...
【简答题】Solving lateral thinking puzzles is one good choice for you to develop ______.
【单选题】胸部损伤外科治疗原则是
A.
纠正酸碱平衡失调
B.
纠正电解质紊乱
C.
给予脱水利尿剂
D.
给予止痛,输血
E.
纠正循环、呼吸功能障碍
【多选题】Which invention has generated difficult puzzles for scientists, politicians, and philosophers?
A.
Theory of Relativity
B.
the splitting of the atom
C.
the first space flight
D.
Dolly's appearance
【简答题】There is a limited number of possible sounds of speech (which are called phonemes, the building blocks of language) which can be combined in various ways to make up words. a.________ b.________ c.____...
相关题目: