#define ElemType int
#define OK 0
#define ERROR 1
#define UINT32 unsigned int
typedef struct Node
{
ElemType Value;
struct Node *pNodeNext;
}NodeList;
/************************************************************************/
/*
创建链表
*/
/************************************************************************/
UINT32 CreatList(NodeList *L);
/************************************************************************/
/*
获取链表长度
*/
/************************************************************************/
UINT32 GetListLen(NodeList *L);
/************************************************************************/
/*
增加节点
*/
/************************************************************************/
UINT32 AddList(NodeList *L,ElemType value,int Location);
/************************************************************************/
/*
打印链表
*/
/************************************************************************/
void ShowList(NodeList *L);
/************************************************************************/
/*
删除
*/
/*************************************************************************/
UINT32 DelListNode(NodeList *L,int Location);
/************************************************************************/
/*
翻转
*/
/*************************************************************************/
UINT32 ReverseList(NodeList *L);
/************************************************************************/
/*
合并链表
*/
/************************************************************************/
NodeList *MergeList(NodeList *L1,NodeList *L2);
/************************************************************************/
/*
排序链表
*/
/************************************************************************/
void SortList(NodeList *L);