?? mylist.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 + -