📄 borrow.h
字号:
#ifndef BORROW_H
#define BORROW_H
#include "date.h"
#include <iostream>
#include <string>
using namespace std;
namespace jixia
{
class Borrow
{
int Book_ID; // 藏书的条码
int Reader_ID; // 读者的证件号
Date BorrowDay; // 借书日期
Date ReturnDay; // 还书日期
double Penalty; // 罚金
public:
Borrow() {}
Borrow(int book_ID,int reader_ID,Date borrowDay,Date returnDay,double penalty=0);
Borrow(const Borrow &b);
~Borrow() {}
friend ostream& operator<<(ostream &o,Borrow &b);
friend class Borrows;
friend class Library;
};
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -