pairnode.h
来自「这是数据结构、算法与应用-C++语言描述的代码」· C头文件 代码 · 共 22 行
H
22 行
// node with a next and element field; element is a pair<const K,E>
#ifndef pairNode_
#define pairNode_
using namespace std;
template <class K, class E>
struct pairNode
{
typedef pair<const K, E> pairType;
pairType element;
pairNode<K,E> *next;
pairNode(const pairType& thePair):element(thePair){}
pairNode(const pairType& thePair, pairNode<K,E>* theNext)
:element(thePair){next = theNext;}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?