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

📄 mylist.h

📁 绘制各种图形的类
💻 H
字号:
// List.h: interface for the CList class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(_LIST_H_)
#define _LIST_H_

#include "AEEStdLib.h"
#include "myShape.h"

class CList  
{
private:
	struct CNode
	{
		CNode(CShape *ps)
		{
			dat = ps;
			next = NULL;
		}
		~CNode()
		{
			delete dat;
			next = NULL;
		}
		void* operator new(size_t sz)
		{
			return MALLOC(sz);
		}
		void operator delete(void *p)
		{
			FREE(p);
		}
		CShape *dat;
		CNode *next;
		
	private:
		// prohibited operations
		CNode();
		CNode(const CNode&);
		CNode& operator=(const CNode&);
	};
	CNode *m_pFront;

	// prohibited operations
	CList(const CList& rhs);
	CList& operator=(const CList& rhs);
	
public:
	void operator delete(void *p);
	void* operator new(size_t sz);
	boolean update(IShell *pIShell);
	CList();
	boolean insert(CShape *ps);
	boolean mt();
	~CList();
};

#endif // !defined(_LIST_H_)

⌨️ 快捷键说明

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