ps: 记得自己写头文件“Header.h”加进去。
#include<iostream>
#include<cstring>
#include<cstdlib>
#include"Header.h"
using namespace std;
template<typename type>
class Node
{
public:
Node *next;
type element;
Node(const type& it,Node *nextValue)
{
element=it;
next=nextValue;
}
Node(Node *nextValue)
{
next=nextValue;
}
Node(){
}
~Node(){
}
};
template<typename type