- 2
- 0
- 约7.72千字
- 约 60页
- 2016-12-06 发布于湖北
- 举报
2线性表-顺序存储结构
An Introduction to Database Systenm 顺序存储结构 ListInsert—移动 L 7 7 a1 a2 a3 a4 a5 a6 a7 a1 a2 a3 a4 a5 a6 a7 表满的条件? length=listsize 10 ListInsert—移动 if(L.length == L.listsize){ newbase = realloc(L.elem, (L.listsize+LISTINCREMENT)*sizeof(ElemType); if(!newbase) return(OVERFLOW); L.elem=newbase; L.listsize +=LISTINCREMENT; } ListInsert Status ListInsert(SqList L, int i, ElemType e){ if( i1 || i L.length+1) return(ERROR); if( L.length = = L.listsize) { ElemType *newbase = (ElemType *)realloc(L.elem, (L.listsize+LISTINCREMENT)*sizeof(ElemType)); if(!newbase)
原创力文档

文档评论(0)