node.h

来自「包括图、二叉树、链表」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef NODE_H_
#define NODE_H_
#include<iostream>
using namespace std;
template<class Node_entry>
struct Node
{
	Node_entry entry;
	Node<Node_entry> *next;	
	Node();
	Node(Node_entry item,Node<Node_entry> *link=NULL);
};
template <class Stack_entry>
Node<Stack_entry>::Node()
{
	next=NULL;
}
/****************************************************************/
template <class Stack_entry>
Node<Stack_entry>::Node(Stack_entry item,Node<Stack_entry> *link)
{
	entry=item;
	next=link;
}
#endif

⌨️ 快捷键说明

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