本文继续讲顺序表上卷未讲完的相关内容。(简短的补充)
在指定位置之前插入数据
test.c

SeqList.c

SeqList.h
//在指定位置之前插入数据
void SLInsert(SL* ps, int pos, SLDataType x);
在指定位置删除数据
test.c

SeqList.c

SeqList.h
//在指定位置删除数据
void SLErase(SL* ps, int pos);
顺序表的查找
test.c

SeqList.c

SeqList.h
//顺序表的查找
int SLFind(SL* ps, SLDataType x);
至此顺序表的实现方法已讲完。
其实本质上就是对一个数组进行增删查改操作。
在下一篇文章中,将讲解顺序表的应用(通讯录)。
祝阅读愉快^_^