用C语言编一个学生成绩管理系统谢谢

来源:百度知道 编辑:UC知道 时间:2024/07/01 01:15:57
其中包括“数据录入 增加人员删除 人员修改数据 查询 按总成绩查询 按姓名查询 输出所有学生的数据 成绩名词 按总分查询排名 按语文查询排 按数学查询排名 按英语查询排名” 希望高手能帮帮我

我这有个差不多的,要吗?是我写的实训作业
程序:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int man=0;
int j;
char str[20];
struct student
{
char id[11];
char name[10];
int n1;
int n2;
int n3;
int n4;
int n5;
int n6;
int n7;
int n8;
int n9;
int zong;
int ping;
}student[100],temp;
void read(void)
{
FILE *cj;
int i,k;
man=0;
while(1)
{
printf("请输入要读取的文件:\n");
scanf("%s",&str);
if((cj=fopen(str,"r"))==NULL)
{
printf("打开失败\n");
}
else
{
break;
}
}
for(i=0;i<500;i++)
{
if(fscanf(cj,"%s %s %d %d %d %d %d %d %d %d %d",&student[i].id,&student[i].name,&student[i].n1,&student[i].n2,&student[i].n3,&student[i].n4,&student[i].n5,&student[i].n6,&student[i].n7,&student