- 2
- 0
- 约3.53千字
- 约 4页
- 2020-08-25 发布于河北
- 举报
#includeiostream.h
#includemalloc.h
#includestdlib.h
//#includesystem.h
#define LIST_INIT_SIZE 100
#define OK 1
#define ERROR 0
#define OVERFLOW -2
#define NULL 0
typedef int ElemType;
typedef int Status;
typedef struct LNode{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
Status InitList(LinkList L)
{
L=new LNode;
//L=(LNode *)malloc(sizeof(LNode));
if(!L)exit(OVERFLOW);
L-next =NULL;
return OK;
}
Status InsertList(LinkList L,int i,ElemType e)// 插入新结点
{
LinkList p,s;
int j=1;
s
您可能关注的文档
最近下载
- 《秋天的怀念》完美版课件.pptx VIP
- 6宫格数独综合练习题(初级、中级、高级各19套).docx VIP
- 6宫格数独综合练习题(初级、中级、高级各10套).pdf VIP
- 6宫格数独综合练习题(初级、中级、高级各18套).pdf VIP
- 中国慢性丙型肝炎诊疗指南(2025年版).docx VIP
- 2026年湖南工业职业技术学院单招试卷.pdf VIP
- 6宫格数独综合练习题(初级、中级、高级各16套).docx VIP
- 6宫格数独综合练习题(初级、中级、高级各25套).docx VIP
- 课本之外的趣味知识|探秘企鹅生存精品课.pptx VIP
- 6宫格数独综合练习题(初级、中级、高级各17套).docx VIP
原创力文档

文档评论(0)