数据结构C++ 实现单链表
link.h#ifndef LINK_H#define LINK_H#pragma once#include <iostream>#define OK 1#define fail 0using namespace std;template <class T>class Node{public: Node<T> *next; T *data;};template <class T>c