![](https://cos-cdn.shuashuati.com/pipixue-wap/2020-1230-1107-56/ti_inject-812ce.png)
本题涉及的顺序表的类型定义如下: #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 typedef struct { ElemType *elem; // 存储空间基址 int length; // 当前长度 int listsize; // 当前分配的存储容量 } SqList; // 顺序表 试写一算法 函数void reverse( SqList &L) ,实现顺序表的就地逆置(不需要另外开辟存储空间),即利用的存储空间将线性表(a 1 ,a 2 ,...a n )逆置为(a n ,a n-1 ,...a 1 )。