求助~~图书管管理系统

来源:百度知道 编辑:UC知道 时间:2024/06/01 08:15:05
我要做个图书管管理系统不知道怎么开始~~哪位高手指点一二,最好有个教程的,本人谢过!!!!!!
能介绍几个软件吗?

#include "stdio.h"
#include "stdlib.h"

struct book {
int id;
char name[100];
char author[100];
int lent_student;
char time[100];
struct book *next;
};

struct student {
int id;
char name[100];
struct student *next;
};

struct book *book_head=NULL;
struct student *student_head=NULL;
int inLib=0;

void save()
{
FILE *fp;
struct book *p1;
struct student *p2;
fp=fopen("books.txt","wb");
p1=book_head->next;
while(p1!=NULL)
{
fwrite(p1,sizeof(struct book),1,fp);
p1=p1->next;
}
fclose(fp);
fp=fopen("students.txt","wb");
p2=student_head->next;
while(p1!=NULL)
{
fwrite(p2,sizeof(struct student),1,fp);
p1=p1->next;
}
fclose(fp);
}

void load()
{
FILE *fp;