高分悬赏求一C语言题答案:学生信息管理系统

来源:百度知道 编辑:UC知道 时间:2024/06/05 15:58:47
设计一个学生信息管理系统,学生信息包括学号,姓名,性别,出生年月,所在院系,电话。主要实现以下功能:1,录入学生信息并保存。2,显示所有学生信息。3,查询排序功能(按学号查询或有按其他信息查询)。4,修改学生信息并保存。5,删除学生信息。
100分求解!!!如果您的程序在执行时没有错误,我将附加100分!!!
544274111@qq.com我邮箱。希望各位大侠帮忙。

留下邮箱,我发给你

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct Node
{
char name[20];
char sex[3];
char age[5];
char hometown[30];
char tel[15];
char qq[12];
struct Node *next;
}Node,*LinkList;

void Enter(LinkList &L)
{
int i,n;
char name[20],sex[5],age[3],hometown[30],tel[15],qq[12];
LinkList p,s;
L=(LinkList)malloc(sizeof(Node));
if(!L)
exit(0);
p=L;
printf("Please input the number of students:\n");
scanf("%d",&n);
printf("Please input the information:\n");
printf("name sex age hometown telephone qq\n");

for(i=0;i<n;i++)
{
s=(LinkList)malloc(sizeof(Node));
s->next=NULL;
if(!s)
exit(0);
scanf("%s%s%s%s%s%s",name,sex,age,hometown,tel,qq);
strcpy