主要操作代碼:
/*
Name: linklist.h
Copyright:
Author:
Date: 21-03-05 20:21
Description:
*/
#ifndef LINKLIST_H_INCLUDED
#define LINKLIST_H_INCLUDED
#include "ds.h" //for Status,OK ...
#ifndef ElemType
#define ElemType int /* 數據元素類型默認爲 int */
#define ELEMTYPE_TAG
#endif
/**********************************************************
* 單鏈表的存儲結構定義
***********************************************************/
typedef struct LNode {
ElemType data;
struct LNod