Demo entry 6624392

c++ private

   

Submitted by nane on Jun 16, 2017 at 02:02
Language: C++. Code size: 858 Bytes.

class book
	{
	private
		string name;            //书名
		string ISBN;			//ISBN码
		string publisher;		//出版商
		string writer;			//作者
		bool statement;			//状态(在架/已借出)
		string user;			//所借给的读者(未借出则记为“NONE”)
		string onShelfDate;		//上架日期
		LibDate return_date;	//返回日期(未借出记为0-0-0,在LibDate中定义)
	}
	class bookData;
	{
	private
		list<book> bookList; 	//book类链表
	}
	class reader
	{
	private
		string nickName;		//读者昵称
		string ID;				//读者ID
		string realName;		//真实姓名
		string phone;			//电话
		string passwords;		//密码
		string sex;				//性别
		list<book>history;		//借阅历史
		list<book>borrow;		//所借书目
	}
	class readerData
	{
	private
		list<reader>readerList;	//读者类链表
	}
	class administrator
	{
	private
		string password;		//管理员密码
	}
	class LibDate 
	{
	private
		int year;				//年月日 计算
		int month;
		int day;
	}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).