borrow.h

来自「图书馆程序设计」· C头文件 代码 · 共 28 行

H
28
字号
#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 + =
减小字号Ctrl + -
显示快捷键?