用C语言编写学生成绩管理

来源:百度知道 编辑:UC知道 时间:2024/06/20 01:23:13
1.主要功能:
(1)       能按学期、按班级完成对学生成绩的录入、修改
(2)       能按班级统计学生的成绩,求学生的总分及平均分,并能根据学生的平均成绩进行排序
(3)       能查询学生成绩,不及格科目及学生名单
(4)       能按班级输出学生的成绩单
(请包含以上全部内容,谢谢)
请写出描述算法的流程图

#include"stdio.h"
#include"stdlib.h"
#include"string.h"
#include"process.h"

/*单链表结构*/
typedef struct LNote {
char num[15];
char name[10];
int yuwen;
int shuxue;
int yingyu;
int n;
int m;
struct LNote *next;
}LNote,*List;

/*初始化*/
List Start()
{
List L;
L=(List)malloc(sizeof(LNote));
L->next=NULL;
return L;
}

/*插入并*/
void Insert(List L,char num[],char name[],int yuwen,int shuxue,int yingyu,int n,int m)
{
List pre,p,s;
p=L;
s=(List)malloc(sizeof(LNote));
strcpy(s->num,num);
strcpy(s->name,name);
s->yuwen=yuwen;
s->shuxue=shuxue;
s->yingyu=yingyu;
s->n=n;
s->m=m;
do {
pre=p;
p=p->next;
} while(p!=NULL&&s->n < p->n);
s->next=pre->next;
pre->next=s;
p