nodebase.h
来自「异质链表 的实现 实现异质链表的查找、插入、删除和遍历」· C头文件 代码 · 共 25 行
H
25 行
// NodeBase.h: interface for the CNodeBase class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _NODEBASE_H__
#define _NODEBASE_H__
/**
* 节点基类
*/
class CNodeBase
{
public:
CNodeBase();
virtual ~CNodeBase();
virtual void* Visit()=0; //返回节点数据
CNodeBase* GetNext(); //返回下一个节点
void SetNext(CNodeBase* pNext);
virtual bool operator== (const CNodeBase* nodebase)=0;
private:
CNodeBase* m_pNext;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?