一个c程序设计

来源:百度知道 编辑:UC知道 时间:2024/05/06 16:16:20
3.建立一个链表,每个结点包括:学号、姓名、性别、年龄,输入一个学号,如果链表中的结点包括该学号,则输出该结点内容后,并将其结点删去。
高手赶快赐教啊,不然我只好把奖赏给了,我们要交作业了

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

#define NL printf("\n");
#define CLS system("CLS");
#define PAUSE system("PAUSE");
#define EMPTYLINE while(getchar()!='\n');

#define MAX_STDUENT_NUM 50 //当前允许的最大学生数以及允许的最大学号

struct student{
int number; //学号
bool sex;
int age;
char name[50];
struct student *next;
};
struct student *Head;
int StudentNum;
struct student *Head_Orderly[4];

void GO(int);
void PrintStu(struct student *);
struct student* Creat(struct student*);
void SearchOrderly(int,struct student *,struct student **,struct student**);
int SeachStdNum(int,struct student *);
float InputNum(char *,int,int,char *);
int InputYN(void);
struct student* SearchStuByName(char [],struct student *);
st