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.
|
|
|
|
#include "Book.h"
|
|
|
|
|
|
|
|
|
|
Book::Book(string bookname, Date data, bool bookislead, int times)
|
|
|
|
|
{
|
|
|
|
|
this->BookName = bookname;
|
|
|
|
|
this->Data = data;
|
|
|
|
|
this->BookIsLend = bookislead;
|
|
|
|
|
this->Times = times;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Book::ShowInfo()
|
|
|
|
|
{
|
|
|
|
|
cout << "<<" << this->BookName << ">>" << endl;
|
|
|
|
|
if (!this->BookIsLend) {
|
|
|
|
|
cout << "״̬:" << "<EFBFBD>ڿ<EFBFBD>" << endl;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
cout << "״̬:" << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" << endl;//<2F><><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
|
|
|
|
cout << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>:" << this->Data.ShowDate() << endl;
|
|
|
|
|
}
|
|
|
|
|
cout << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:" << this->Times << endl;
|
|
|
|
|
cout << endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Book::Show_LoanTime()
|
|
|
|
|
{
|
|
|
|
|
cout << "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>:" << this->Data.ShowDate() << endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Book::inTurnout()//<2F>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>_pstu1<75>滻<EFBFBD><EFBFBD><F3A3ACB2><EFBFBD>Ҫ<EFBFBD><D2AA>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
if (this->BookIsLend == false) {
|
|
|
|
|
this->BookIsLend = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Book::outTurnin()
|
|
|
|
|
{
|
|
|
|
|
if (this->BookIsLend == true) {
|
|
|
|
|
this->BookIsLend = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Book::addTimes()
|
|
|
|
|
{
|
|
|
|
|
this->Times += 1;
|
|
|
|
|
}
|