文档详情

C语言图书管理系统代码.pdf

发布:2025-06-12约4.18万字共58页下载文档
文本预览下载声明

C语言图书管理系

统代码

文档仅供参考

#includestdio.h

#includestdlib.h

#includestring.h

structbook{

intnum;

charbname[50];

charwname[20];

charpress[50];

charsort[50];

inttime;

floatprice;

structbooknext;

);

structbookcreatbook();〃创立链表

structbookaddbook(structbookhead);//添力口图书

intyanzheng(structbookheadjntm);〃验证新添加

的图书编码是否已存在

voiddeletebook(structbookhead);〃删除图书

voidfprint(structbookhead);〃将链表写入文件

structbookload();〃从文件中取信息并

建成链表

voidprint_book(structbookhead);〃将链表信息输

文档仅供参考

voidchaxun(structbookhead);〃查询图书信息

voidnum_chaxun(structbookhead);〃按图书编号

查询图书

voidwname_chaxun(structbookhead);〃按作者名

查询图书

voidsort_chaxun(structbookhead);〃按类别查询

图书

voidtime_chaxun(structbookhead);〃按出版时间

查询图书

voidbname_chaxun(structbookhead);〃按图书名

查询图书

voidxiugai(structbookhead);〃修改图书信息

voidpaixu(structbookhead);〃对图书进行排序

voidnum_paixu(structbookhead);〃按图书编号

排序

voidtime_paixu(structbookhead);〃按图书出版时

间排序

voidprice_paixu(structbookhead);〃按图书价格排

voidbname_paixu(structbookhead);〃按图书名排

文档仅供参考

voidwname_paixu(structbook*head);〃按作者名排

intmain()

(

intchoicenxy=lccl=123;

/////

显示全部
相似文档