You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
908 B

#ifndef BOOK_H
#define BOOK_H
#include <iostream>
#include <string>
#include "Date.h"
using namespace std;
class Book
{
public:
Book(string bookname, Date data, bool bookislead, int times);//<2F><><EFBFBD><EFBFBD><ECBAAF>
void ShowInfo();//<2F><>ʾȫ<CABE><C8AB>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>Ϣ
void Show_LoanTime();//<2F><EFBFBD>ӿڣ<D3BF><DAA3><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
void inTurnout();//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void outTurnin();//ͼ<><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void addTimes();//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ
string getName() const { return BookName; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡͼ<C8A1><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Date& getDate() { return Data; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡͼ<C8A1><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
bool getStatue() const { return BookIsLend; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡͼ<C8A1><CDBC>״̬
int getTimes() const { return Times; }//<2F>ⲿ<EFBFBD><E2B2BF><EFBFBD>ʽӿڣ<D3BF><DAA3><EFBFBD>ȡͼ<C8A1><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//virtual ~Book();
protected:
private:
string BookName;//<2F><><EFBFBD><EFBFBD>
Date Data;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
bool BookIsLend;//ͼ<><CDBC><EFBFBD>Ƿ<EFBFBD><C7B7>ڿ<EFBFBD>
int Times; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
};
#endif // BOOK_H