From ba99520376fb8ac0a1ab78f4d718d95548a46fbf Mon Sep 17 00:00:00 2001 From: pi5fnqcfr <824659727@qq.com> Date: Tue, 4 Jun 2024 22:00:25 +0800 Subject: [PATCH] ADD file via upload --- MangerBook.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 MangerBook.h diff --git a/MangerBook.h b/MangerBook.h new file mode 100644 index 0000000..1126f8d --- /dev/null +++ b/MangerBook.h @@ -0,0 +1,46 @@ +#ifndef MANGERBOOK_H +#define MANGERBOOK_H +#include "Book.h" +#include +#include +#include +#include +#include + +#define EXIT 0 +#define LOANRANKING 1 +#define ADDBOOK 2 +#define SEARCHBOOK 3 +#define SELECTBOOK 4 +#define LOANBOOK 5 +#define RETURNBOOK 6 +#define SHOWBOOK 7 +#define OTHERS 8 +#define FILENAME "D:/c++一些代码/library class版/library class版/图书信息.txt" +using namespace std; + +class MangerBook +{ +public: + MangerBook();//构造函数 + virtual ~MangerBook();//析构函数 + void ShowMenu();//菜单 + void Exit_Sys();//退出 + void Init_Book();//初始化 + void LoanRanking();//借出次数排行榜 + void AddBook();//增加图书 + void SearchBook();//查找图书 + void SelectBook();//删除图书 + void LoanBook();//借出图书 + int IndexBook(string name);//索引图书在容器中位置 + int CntDay(const Date& date1, const Date& date2);//计算两个日期之间相差多少天 + bool LegalDate(const Date& date);//判断日期是否合法 + void ReturnkBook();//归还图书 + void ShowBook();//显示书库 + vector* Book_Array;//容器 +protected: + +private: +}; + +#endif // MANGERBOOK_H