c语言实践——学生信息管理系统(链表),使用链表和文件。
#include #include #include #include #include
#define LEN sizeof(struct student)
#define DAT_FILENAME "Information.txt"
/**********************定义数据结构********************/
struct date { int year; int month; int day; };
struct student { int ID; char Name[8]; int age; char xb; char telephone[15]; char address[40]; struct date birthday; char email[40]; struct student *next; };
/*************************函数原型*********************/ void DispMainMenu();
void DisplayInformation(struct student *head);
struct student *FindstudentID(struct student *head,int findID);
struct student *FindstudentName(struct student *head,char findname[]); struct student *InformationInput(struct student *head); void QueryInformation(struct student *head);
struct student *EditInformation(struct student *head);
struct student *Insert(struct student *head,struct student *p); void Save(struct student *head);
struct student *Read(struct student *head);
struct student *Delete(struct student *head,int findID);