This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <malloc.h> | |
typedef int ElemType; | |
typedef struct LNode //定义单链表结构 | |
{ | |
ElemType data; | |
struct LNode *next; | |
}LinkNode; | |
void InitList(LinkNode *&L) //初始化单链表 |