主菜单01.doc_第1页
主菜单01.doc_第2页
主菜单01.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

#include#include#include#include# define LEN sizeof(struct booktype) struct booktypeint num;/图书编号char bookname20;char auther20;char press20;/出版社double price;char leibie20;char publishtime20;/出版时间struct booktype *next; ; struct borrowertypeint num;/借书证号char name20;char sex20;char tel20;int lendnum;/借书数目int booknum;/书的编号struct borrowertype*next; ;void welcomemenu();/欢迎界面void mainmenu();/主菜单void writerdata();/向文件写入图书信息 void reddata();/从文件读图书信息void record();/记录图书信息 void displyall();/显示所有信息void del();/删除void change();/修改void devise(struct booktype*p);/选择更改内容void search_by_bookname();/按书名查询void search_by_price();/按作者名查询void peixu_by_price();/排序void peixu_by_time();void freeAll();/清空链表内容void search_by_auther();void search_by_price();void welcomemenu()printf(n*n);printf(n* 欢迎使用图书管理系统 *n);printf(n* 1.进入系统);printf(t0.退出系统 *n);printf(n*n);printf(n 请选择);void mainmenu () int choice;/scanf(%d&choice); /choice = -1; /readData (); /printf (n温馨提示:为保证您的操作得到保存,请按正常顺序退出系统_n); do printf (nnn); printf (ttt-n);printf (ttt-n); printf (ttt+ 1-录入图书信息 |n);printf (ttt+ 2-浏览图书信息 |n);printf (ttt+ 3-查询图书信息 |n);printf (ttt+ 4-删除图书信息 |n);printf (ttt+ 5-修改图书信息 |n);printf (ttt+ 0-退出系统 |n);printf (ttt+*|n);printf (ttt-n); printf (请输入您的选择:); scanf (%d, &choice); switch (choice) case 0:printf(谢谢使用!再见! _n);exit (0);case 1:void record ();break;case 2: void displyall(); break;case 3: void search_by_auther(); break; case 4: void del (); break; case 5: void change (); break; default: printf (n无效选项!); break; while (choice != 0);int main()int a;welcomemenu();while(1)printf (请输入您的选择:); scanf (%d, &a );switch

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论