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

📄 class.h

📁 模块化的链表的示例
💻 H
字号:
#ifndef	CNODELIST_H
#define	CNODELIST_H


const int MAXSIZE = 50;

class clsNode_c
{
public:
	int uinodeuidata;
	clsNode_c * pstnext;
};

class clsList_c
{
private:
	int uidata;
	clsNode_c * psthead;
public:
	//显式构造函数
	clsList_c( );
	clsList_c( int count );
	//显式拷贝构造函数
	clsList_c( clsList_c & cllistcopy );
	//显式=号运算符重载
	clsList_c & operator = ( const clsList_c & cllistdemo );
	//显式+号运算符重载
	clsList_c &  operator + ( const clsList_c & cllistdemo );
	void Insert( int position, int elem );
	void Delete( int position );
	void IsEmpty( );
	void IsFull( );
	void ClearList( );
	void PrintList( );
	~clsList_c();
};

#endif

⌨️ 快捷键说明

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