文档详情

图书管理系统的计(C语言).doc

发布:2016-10-07约2.13万字共14页下载文档
文本预览下载声明
图书管理系统设计 图书管理信息包括:图书名称、图书编号、单价、作者、存在状态、借书人姓名、性别、学号等 功能描述: 1. 新进熟土基本信息的输入 2. 图书基本信息的查询 3. 对撤消图书信息的删除 4. 为借书人办理注册 5. 办理借书手续 6. 办理换书手续 要求:以文件方式存储数据,系统以菜单方式工作。这是本人大一第二学期初C语言课程设计的作品,嘿嘿,本来以为已经找不到原稿了,今天无意中竟然在QQ网络硬盘中找到了当初的teta版,发布于此,以作纪念。 ? ? ? C源代码如下: #includestdio.h #includestdlib.h #includestring.h struct book{ char book_name[30]; int bianhao; double price; char author[20]; char state[20]; char name[20]; char sex[10]; int xuehao; struct book *book_next; }; struct club{ char name[20]; char sex[10]; int xuehao; char borrow[30]; struct club *club_next; }; void Print_Book(struct book *head_book);/*浏览所有图书信息*/ void Print_Club(struct club *head_club);/*浏览所有会员信息*/ struct book *Create_New_Book();/*创建新的图书库,图书编号输入为0时结束*/ struct book *Search_Book_bianhao(int bianhao,struct book *head_book); struct book *Search_Book_name(char *b_name,struct book *head_book); struct book *Search_Book_price(double price_h,double price_l,struct book *head_book); struct book *Insert_Book(struct book *head_book,struct book *stud_book);/*增加图书,逐个添加*/ struct book *Delete_Book(struct book *head_book,int bianhao);/*删除图书*/ struct club *Create_New_Club(); struct club *Search_Club_xuehao(int xuehao,struct club *head_club); struct club *Search_Club_name(char *c_name,struct club *head_club); struct club *Insert_Club(struct club *head_club,struct club *stud_club); struct club *Delete_Club(struct club *head_club,int xuehao); struct book *Lent_Book(int bianhao,int xuehao,struct book *head_book,struct club *head_club); struct book *back(int bianhao,int xuehao,struct book *head_book,struct club *head_club); int main() { struct book *head_book,*p_book; char book_name[30],name[20],author[20],sex[10]; int bianhao; double price,price_h,price_l; int size_book=sizeof(struct book); int m=1,n=1,f; char *b_name,*c_name; struct club *head_club,*p_club; int xuehao; int size_club=sizeof(struct club); int choice; printf(\n欢迎您第一次
显示全部
相似文档