node.h

来自「建立輸入文檔,輸出迷宮路線和迷宮的形象圖 (有實例)」· C头文件 代码 · 共 23 行

H
23
字号
template<class T>
struct Node{
	//data members
	T entry;
	Node<T> * next;
	//constructors
	Node();
	Node(T item,Node<T> *add_on=NULL);
};

template<class T>
Node<T>::Node()
{
	next=NULL;
}

template<class T>
Node<T>::Node(T item,Node<T> *add_on)
{
	entry=item;
	next=add_on;
}

⌨️ 快捷键说明

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