linkedlist.h

来自「数据结构中的二叉树的遍历(前序、中序、后序)算法」· C头文件 代码 · 共 35 行

H
35 行
字号
/*
  Name: linkedlist
  Copyright: math@jnu
  Author: Fan zz
  Date: 29-09-08 15:54
  Description: The header file of linked list, which
                includes the definition of common variable
                and useful declaration.
*/
#include "status.h"

#define ElemType int

/****************************************
*	Desc:Define a LinkedList structure
*
*
  ***************************************/
typedef struct LNode
{
	ElemType data;
	struct LNode *next;
}LNode, *LinkList;

/************************************
//		Functions declaration
//
//
*************************************/
Status CreateList_L(LinkList &L, int n);		//Create LinkList with Length n
Status PrintList_L(LinkList L);					//Show the element of Linklist
Status DestroyList_L(LinkList &L);				//Destroy LinkList
Status DeleteNode(LinkList &L, int pos, ElemType* value);		//Delete node from Linklist
int  ListLength_L(LinkList L);					//Get Linklist Len

⌨️ 快捷键说明

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