这里有些数据结构的基本操作,因为是刚学的,看不懂,Initlist(&L)DestroyList(&L)ClearList(&L) ListEmpty(L)ListLength(L)GetElem(L,i,&e)LocateElem(L,e,compare())PriorElem(L,cur_e,&pre_e) NextElem(L,cur_e,&pre_e)ListInsert(&L,i,e) ListDe
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/05 12:08:18
![这里有些数据结构的基本操作,因为是刚学的,看不懂,Initlist(&L)DestroyList(&L)ClearList(&L) ListEmpty(L)ListLength(L)GetElem(L,i,&e)LocateElem(L,e,compare())PriorElem(L,cur_e,&pre_e) NextElem(L,cur_e,&pre_e)ListInsert(&L,i,e) ListDe](/uploads/image/z/10161143-71-3.jpg?t=%E8%BF%99%E9%87%8C%E6%9C%89%E4%BA%9B%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C%2C%E5%9B%A0%E4%B8%BA%E6%98%AF%E5%88%9A%E5%AD%A6%E7%9A%84%2C%E7%9C%8B%E4%B8%8D%E6%87%82%2CInitlist%28%26L%29DestroyList%28%26L%29ClearList%28%26L%29+ListEmpty%28L%29ListLength%28L%29GetElem%28L%2Ci%2C%26e%29LocateElem%28L%2Ce%2Ccompare%28%29%29PriorElem%28L%2Ccur_e%2C%26pre_e%29+NextElem%28L%2Ccur_e%2C%26pre_e%29ListInsert%28%26L%2Ci%2Ce%29+ListDe)
这里有些数据结构的基本操作,因为是刚学的,看不懂,Initlist(&L)DestroyList(&L)ClearList(&L) ListEmpty(L)ListLength(L)GetElem(L,i,&e)LocateElem(L,e,compare())PriorElem(L,cur_e,&pre_e) NextElem(L,cur_e,&pre_e)ListInsert(&L,i,e) ListDe
这里有些数据结构的基本操作,因为是刚学的,看不懂,
Initlist(&L)
DestroyList(&L)
ClearList(&L)
ListEmpty(L)
ListLength(L)
GetElem(L,i,&e)
LocateElem(L,e,compare())
PriorElem(L,cur_e,&pre_e)
NextElem(L,cur_e,&pre_e)
ListInsert(&L,i,e)
ListDelete(&L,i,&e)
ListTraverse(L,vist())
这里有些数据结构的基本操作,因为是刚学的,看不懂,Initlist(&L)DestroyList(&L)ClearList(&L) ListEmpty(L)ListLength(L)GetElem(L,i,&e)LocateElem(L,e,compare())PriorElem(L,cur_e,&pre_e) NextElem(L,cur_e,&pre_e)ListInsert(&L,i,e) ListDe
这就是一个代称起了个英文名,第一个意思是初始化线性表,依次是删除线性表,清空线性表,线性表至空,计算线性表长度,.至于括号里的自己可以根据需要改,用来传入数据的.