那个高手帮俺改改这个C语言链表程序,哎呀,快崩溃了!

来源:百度知道 编辑:UC知道 时间:2024/09/26 00:30:14
编译和连接都显示没有错误,但是运行时就是不能运行啊,下面是地址,在我的百度空间里,高手帮帮俺啊!谢谢了!!!
http://hi.baidu.com/飞龙木易/blog/item/c70da6c5939a61a08226ac9a.html/index/0#comment

有修改的函数都做了标注,请自己仔细的查看。

//---------------------------------------------------------------------------
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <conio.h> /* 注意这里,用到了getch()函数*/

typedef struct{
char num[8];/*学号*/
char name[9];/*姓名*/
char gender[3];/*性别*/
int score;/*成绩*/
}DataType;

typedef struct lnode
{
DataType data;
struct lnode *next;
}lnode,*linklist;

int menu_select(void) /*注意这里*/
{
int sn;
printf("\n 学生信息管理系统\n");
printf("=========================================\n");
printf(" 1.学生信息线性表的建立\n");
printf(" 2.插 入 学 生 信 息\n");
printf(" 3.查 询 学 生 信 息\n");
printf(" 4.删 除 学 生 信 息\n");
printf(" 5