大家帮忙编写一个学生档案管理的C程序吧!谢谢

来源:百度知道 编辑:UC知道 时间:2024/06/04 06:48:42
编写学生管理系统,要求能够实现基本功能,如:添加学生,查找指定学号,删除学生,排序,查看所有学生
谢谢大家啊

晕 出100分? 100元钱才有人帮你

不劳而获的想法尽量别有,自己学习研究区!

的确是这个道理

#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#define ID struct id
struct id
{
char name[20];
int num;
int a;
int b;
int c;
double ave;
ID *next; //
};

int pc=0;

ID *creat()
{
ID *p1,*p2,*head;
int pd;
p1=p2=head=NULL;
printf("\t\t\t 开始输入记录(学号0结束)!\n");
while(1)
{
printf("请输入学生的学号:\n");scanf("%d",&pd);
if(pd==0) break;
p1=(ID*)malloc(sizeof(ID));
p1->num=pd;
printf("请输入学生的姓名:\n");scanf("%s",p1->name);
printf("请输入学生的语文成绩:\n");scanf("%d",&p1->a);
printf("请输入学生的数学成绩:\n");scanf("%d",&p1->b);
printf("请输入学生的外语成绩:\n");scanf