用c语言编学生成绩管理程序

来源:百度知道 编辑:UC知道 时间:2024/05/16 14:06:30
(1) 登录班级成员的下列信息:
姓名(name);
性别(sex);
学号(no);
数学成绩(math);
英语成绩(English)
计算机成绩(computer)
(2) 对班级成员信息可以做以下操作:
人员信息的初始化、显示班级成员信息、插入、修改、删除、查询、排序
(3) 程序应分别用几个函数实现以下各功能:
对新报到成员信息进行插入(insert);
能够根据需要正确显示出班级成员的信息;
能够对相应的班级成员信息进行修改;
能够根据位置对班级成员的信息进行删除(del);
能够根据学号或者是某门课的成绩进行排序;
能够根据给定的关键字进行查询操作;

自己改改把
#include "stdio.h" /*I/O函数*/
#include "stdlib.h" /*其它说明*/
#include "string.h" /*字符串函数*/
#include "conio.h" /*屏幕操作函数*/
#include "mem.h" /*内存操作函数*/
#include "ctype.h" /*字符操作函数*/
#include "alloc.h" /*动态地址分配函数*/
struct score
{
int mingci;
char xuehao[8];
char mingzi[20];
float score[6];
}data,info[1000];
int i,j,k=0;
char temp[20],ch;
FILE *fp,*fp1;

void shuru()
{
if((fp=fopen("s_score.txt","ab+"))==NULL)
{
printf("cannot open this file.\n");
getch();exit(0);
}
for(i=0;i<=1000;i++)
{
printf("\nPlease shuru xuehao:");
gets(data.xuehao);
printf("Please shuru mingzi:");
gets(data.mingzi);
printf("Please shuru yuwen score:");
gets(temp);data