数据结构c语言版第二版 数据结构:顺序表的合并(C语言)?
数据结构:顺序表的合并(C语言)?#include <stdio.h>#include <malloc.h>#include <stdlib.h>#define LIST_IN
数据结构:顺序表的合并(C语言)?
#include <stdio.h>#include <malloc.h>#include <stdlib.h>#define LIST_INIT_SIZE 10 // 线性表存储空间的初始分配量#define LISTINCREMENT 2 // 线性表存储空间的分配增量struct SqList{ int *elem;// 存储空间基址 int length;// 当前长度 int listsize;// 当前分配的存储容量(以sizeof(int)为单位)};void InitList(SqList &L){ // 操作结果:构造一个空的顺序线性表