1 / 27
文档名称:

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

格式:doc   大小:75KB   页数:27页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

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

上传人:beny00001 2021/7/3 文件大小:75 KB

下载得到文件列表

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

相关文档

文档介绍

文档介绍:#include<>
#include<>
#include<>
struct book{
int num;
char bname[50];
char wname[20];
char press[50];
char sort[50];
int time;
float price;
struct book *next;
};
struct book *creatbook(); //创建链表
struct book *addbook(struct book *head); //添加图书
int yanzheng(struct book *head,int m); //验证新添加的图书编码是否已存在
void deletebook(struct book *head); //删除图书
void fprint(struct book *head); //将链表写入文件
struct book *load(); //从文件中读取信息并建成链表
void print_book(struct book *head); //将链表信息输出
void chaxun(struct book *head); //查询图书信息
void num_chaxun(struct book *head); //按图书编号查询图书
void wname_chaxun(struct book *head); //按作者名查询图书
void sort_chaxun(struct book *head); //按类别查询图书
void time_chaxun(struct book *head); //按时间查询图书
void bname_chaxun(struct book *head); //按图书名查询图书
void xiugai(struct book *head); //修改图书信息
void paixu(struct book *head); //对图书进展排序
void num_paixu(struct book *head); //按图书编号排序
void time_paixu(struct book *head); //按图书时间排序
void price_paixu(struct book *head); //按图书价格排序
void bname_paixu(struct book *head); //按图书名排序
void wname_paixu(struct book *head); //按作者名排序
int main()
{
int choice,n,x,y=1,c,c1=1234;
char a,d,b[10],b1[10]="yjk";
struct book *head=NULL;
while(y){
system("cls");
printf("\n\n\n\n\n\n\n");
printf(" ********** 欢迎光临 **********\n\n");
printf(" ********************** 图书信息管理系统 ************************\n\n\n");
printf("\n\n");
printf(" ============1-用户登录===========\n");
printf(" ============0-退出系统===========\n");
printf(" 请输入您的选择:");
scanf("%d",&n);
printf("\n");
getchar();
swit