class.h
来自「模块化的链表的示例」· C头文件 代码 · 共 38 行
H
38 行
#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 + =
减小字号Ctrl + -
显示快捷键?