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

📄 linklist.h

📁 用于数据结构课程设计,双向链表,并且用了MFC做图形界面
💻 H
字号:
//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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -