bool Is_teacher;
static int Book_Number;
Book(string c, string n, string a, string p, double pr)
{
code = c;name = n;author = a;press = p;
price = pr;Is_Lend = 0;Book_Number++;
};
Book() { Is_Lend = false; }
string Gettime() { return time; }
string GetCode() { return code; }
string GetName() { return name; }
string GetAuthor() { return author; }
string GetPress() { return press; }
int GetDeadline() { return deadline; }
double GetPrice() { return price; }
bool GetIs_Lend() { return Is_Lend; }
void SetDeadline(int);
void SetTime(string);
void SetIs_Lend(bool);
void SetCode(string);
void SetName(string);
void SetAuthor(string);
void SetPress(string);
void SetPrice(float);
void Display();
friend const std::string getCurrentSystemTime();//获取现在的时间
friend istream& operator >> (istream& stream, Book& b);//重载操作符>>
friend ostream& operator << (ostream& stream, Book& b);//重载操作符<<
};
class User
{
protected:
string name;
string key;
bool Is_Admin, Is_Librarian, Is_Reader;
public:
void key_change(User* U);
int Judge();
static int User_Number;
User() { Is_Admin = 0;Is_Librarian = 0;Is_Reader = 1; };
void Setname(string name1);
void Setkey(string key1);
void SetIdentity(bool ad, bool li, bool re)
- 1
- 2
前往页