用VC++编写一个程序实现不超过50个学员成绩的管理概论.docVIP

  • 5
  • 0
  • 约1.08万字
  • 约 13页
  • 2018-09-22 发布于湖北
  • 举报

用VC++编写一个程序实现不超过50个学员成绩的管理概论.doc

要求是:每个学员包括3门成绩,从键盘输入学号、姓名、3门课成绩,计算出学员的平均成绩,按照平均成绩由大到小排序。 使用到 知识点:数组、带参数的函数、字符串、结构。在排序后的学员成绩中插入一个学员的信息,要求插入后仍然保持成绩表原有排序。要求输入指定的学号,从学员信息表中删除该学员,删除后的成绩表保持原有排序。 //程序清单: #include iostream.h #include iomanip.h #include fstream #include vector #include malloc.h #include stdlib.h #include string #include process.h #include stdio.h #define NULL 0 int const Q = 20; #define LEN sizeof(struct student) using namespace std; int n = 0; //定义一个全局变量统计学生人数 //——---------定义一个学生考试信息的结构体 struct student { char name[Q]; //用来存放姓名的 char sex[Q]; //用来存放性别的 long int id; //用来存放准考证号的 int score[4]; //用来存

文档评论(0)

1亿VIP精品文档

相关文档