线性表的基本操作
#definelist_size10#defineincrement5#defineok1#include#include#includetypedefstruct{int*elem;intlength;intlistsize;}sqlist;intinitlist(sqlist&L)//构造一个空的线性表{L.elem=(int*)malloc(list_size*sizeof(int));if(!L.elem)printf("申请空间失败\n");L.
下载地址
用户评论