linklist.h
来自「用于数据结构课程设计,双向链表,并且用了MFC做图形界面」· C头文件 代码 · 共 59 行
H
59 行
//node.h
#ifndef _INSIDE_VISUAL_CPP_Node
#define _INSIDE_VISUAL_CPP_Node
class CNode:public CObject
{
DECLARE_DYNAMIC(CNode)
public:CString data;
CNode()
{
}
CNode(const CNode&s){
data=s.data;
}
const CNode&operator=(const CNode &s)
{
data=s.data;
return *this;
}
BOOL operator==( CNode&s)
{
if(data=s.data)
{
return true;
}
else{
return false;
}
}
BOOL operator!=(CNode&s)
{
//Let's make use of the operator we just defined!
return!(*this==s);
}
#ifdef _DEBUG
void Dump(CDumpContext&dc);
#endif
};
#endif
typedef CTypedPtrList<CObList,CNode*>CNodeList;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?