- 4
- 0
- 约1.57万字
- 约 14页
- 2016-11-25 发布于贵州
- 举报
图书管理系统的设计(语言)
图书管理系统设计
图书管理信息包括:图书名称、图书编号、单价、作者、存在状态、借书人姓名、性别、学号等
功能描述:
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欢迎您
您可能关注的文档
- 固体、液体压强(1课).doc
- 固体压强和液体压强练1.doc
- 固体液体压强月考试题人教版).doc
- 园林绿化工程施工技术案.doc
- 固体物理总复习资料及案.doc
- 固定式压力容器安全技监察规程修订情况综述.doc
- 固定资产减值准备问题研究.doc
- 固安二次结构、装修、饰.doc
- 固定资产及无形资产管办法.doc
- 园长任职资格培训班试2(答案).doc
- 广东省广州省实验中学教育集团2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州大学附属中学2025-2026学年八年级上学期奥班期中物理试题(解析版).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(含答案).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第八十六中学2025-2026学年八年级上学期期中物理试题(解析版).docx
- 广东省广州市第八十九中学2025-2026学年八年级上学期期中考试物理试题(含答案).docx
- 广东省广州市第二中学2025-2026学年八年级上学期期中考试物理试题(解析版).docx
- 2026《中国人寿上海分公司营销员培训体系优化研究》18000字.docx
- 《生物探究性实验教学》中小学教师资格模拟试题.docx
最近下载
- 广东省广州市某中学2024-2025学年九年级下学期开学考试化学试卷.pdf VIP
- 2024年江苏大学附属医院招聘真题.docx VIP
- 直播电商模式下抖音消费者冲动购买行为影响因素研究(3).docx VIP
- 湖北省学位英语考试真题2023.pdf VIP
- 2026届高考语文复习:55分与45分作文,其精妙分野,究竟在何方?——以“活人感”与“敬自己”作文为例.pptx
- 2023年江苏大学附属医院医护人员招聘考试模拟试题及答案解析.docx VIP
- 2025年货代年终总结及明年计划.pdf VIP
- 2025-2030日本便利店业态创新方向与中国本土化改造案例报告.docx
- 高考必备单词三千五电子版.pdf VIP
- 2026安全生产第一课78张.pptx
原创力文档

文档评论(0)