📄 nlist.h
字号:
/****************************************************************************************************/
/****************************************NList.h**************************************************/
/****************************************************************************************************/
#ifndef _NLIST_H_
#define _NLIST_H_
//////////////////////////////////////////////////////////////////////////
///Order List
//////////////////////////////////////////////////////////////////////////
#define MaxSize 100
template<class T>
struct OList
{
T list[MaxSize];
int size;
};
//////////////////////////////////////////////////////////////////////////
//Single List
//////////////////////////////////////////////////////////////////////////
template<class T>
struct SNode
{
T Data;
SNode<T> *next;
};
//////////////////////////////////////////////////////////////////////////
//Double Head List
//////////////////////////////////////////////////////////////////////////
template<class T>
struct DNode
{
T Data;
DNode<T> *left;
DNode<T> *right;
};
//////////////////////////////////////////////////////////////////////////
//Single Circle List
//////////////////////////////////////////////////////////////////////////
template<class T>
struct CNode
{
T Data;
CNode<T> *next;
// CNode<T> *chead;//,*ctail
};
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
//All kinds of List operators function include NList.cpp files
//////////////////////////////////////////////////////////////////////////
#if !defined (_NLIST_CPP_)
#include "NList.cpp"
# endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -