前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >c语言中图书管理系统_c语言图书管理系统排序

c语言中图书管理系统_c语言图书管理系统排序

作者头像
全栈程序员站长
发布2022-09-27 10:31:30
1.4K0
发布2022-09-27 10:31:30
举报
文章被收录于专栏:全栈程序员必看

课件C语言图书管理系统代码

#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(” 请输入您的选择:”);

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/183915.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档