ADD file via upload

main
pi5fnqcfr 7 months ago
parent af9efb2988
commit ba99520376

@ -0,0 +1,46 @@
#ifndef MANGERBOOK_H
#define MANGERBOOK_H
#include "Book.h"
#include <vector>
#include <iostream>
#include <cstring>
#include <io.h>
#include <direct.h>
#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*>* Book_Array;//容器
protected:
private:
};
#endif // MANGERBOOK_H
Loading…
Cancel
Save