⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 booksystem.h

📁 基于MFC实现的图书管管理系统
💻 H
字号:
#ifndef BOOKSYSTEM_H
#define BOOKSYSTEM_H

////////////////////////////////////////////////////////////////////定义基类

 //节点类型
class BookSystem
{
	static int j;                //作为记录数据的静态变量
	static int storage;
	static BookSystem* t;
	static BookSystem* re;
	//static BookSystem* h;
public:
	BookSystem();  //构造函数
	~BookSystem();//析构函数
	void replace(BookSystem*,BookSystem*);
	void Set(CString,CString,CString);//付值函数    
	void Division(CString );//把姓名一个一个分开的函数
	int ReturnStorage();  //返回库存函数
	BookSystem* InsertMatrix_PandB(CString,CString ,BookSystem*temp);//在出版社和书名的稀疏距阵里建立节点
	BookSystem* InsertMatrix_PandA(CString ,CString ,BookSystem*temp); //在出版社和作者的稀疏距阵里建立节点
	BookSystem* InsertMatrix_BandA(CString ,CString ,BookSystem*temp);//在作者和书名的稀疏距阵里建立节点
	bool Borrowbookname(CString, CString, CString,BookSystem*);//借书
	bool Returnbookname(CString, CString, CString,BookSystem*);//还书
//	void InsertBookSystem(int,int,int,BookSystem*);//插入一本书

	void Print_Press(CString, BookSystem* temp,CListBox &);//按出版社打印
	void Print_Bookname(CString, BookSystem* temp,CListBox &);//按书名打印
	void Print_Author(CString, BookSystem* temp,CListBox &);//按作者打印
	void Print_PandB(CString, CString ,BookSystem* temp,CListBox &); //按出版社和书名打印
	void Print_PandA(CString, CString,BookSystem* temp,CListBox &);//按出版社和作者打印
	void Print_BandA(CString, CString ,BookSystem* temp,CListBox &); //按书名和作者打印
	void Print_PandBandA(CString, CString, CString ,BookSystem* temp,CListBox &); //按出版社,书名和作者打印
	bool Print_Type(CString, BookSystem* temp,CListBox &);//按书的类型打印

	BookSystem * Print_Press(CString, BookSystem* temp);  //按出版社打印
	BookSystem * Print_Bookname(CString, BookSystem* temp); //按书名打印
	BookSystem * Print_Author(CString, BookSystem* temp);//按作者打印
	BookSystem * Print_PandB(CString, CString ,BookSystem* temp); //按出版社和书名打印
	BookSystem * Print_PandA(CString, CString,BookSystem* temp);//按出版社和作者打印
	BookSystem * Print_BandA(CString, CString ,BookSystem* temp); //按书名和作者打印
	BookSystem * Print_PandBandA(CString, CString, CString ,BookSystem* temp); //按出版社,书名和作者打印
	bool Print_Type(CString, BookSystem* temp); //按书的类型打印

	bool InsertBookSystem(CString,CString,CString,CString,BookSystem*);//插入一本书
	BookSystem* BookSystem::ResearchInsert_Type(BookSystem*,BookSystem*);// 按类型查找和插入,方法基于跳跃链表的
	BookSystem* Search_Press(CString,BookSystem*);               //查找出版社
	BookSystem* Search_Bookname(CString,BookSystem*);               //查找书名
	BookSystem* Search_Author(CString,BookSystem*);               //查找类名
	BookSystem* Search_PandB(CString,CString,BookSystem*); //按出版社和书名查找
	BookSystem* Search_BandA(CString,CString,BookSystem*); //按出版社和作者查找
	BookSystem* Search_PandA(CString,CString,BookSystem*); //按书名和作者查找
	BookSystem* Search_PandBandA(CString,CString,CString,BookSystem*); //按出版社,书名和作者查找
	CString press,bookname,author,type;
	int note[3],ID,booknameID;   //note用来记录数据相应坐标的位置

	BookSystem *press_next;             //记录下一条同一出版社标记的节点的位置
	BookSystem *bookname_next;               //记录下一条同一书名的节点的位置
	BookSystem *author_next;               //记录下一条同一人名的节点的位置
	BookSystem *same; //在类型的存储中记录下一个相同书的类型的节点的指针
	BookSystem *other; //在类型的存储中记录下一个不相同书的类型的节点的指针
	
};
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -