3.3ADT

Opration
LnitList(*L): Initialize operation, create an empty linear list L
List Empty(L): If the linear list is empty, return true, otherwise return false
ClearList(*L): Clear the linear list
GetElem(L, i , *E): Return the value of the i-th position element in the linear table L to e
LocateElem (L, e): Find the element equal to the given value e in the linear table L, if the search is successful, return the element in the The sequence number in the table means success;
otherwise, 0 means failure.
ListInsert(*L,i,e): Insert a new element at the i-th position in the linear list L.
ListDelete(*L,i,*e): Delete linear The i-th position element in the table L, and use e to return its value
ListLength(L): Return the number of elements in the linear table L

Guess you like

Origin blog.csdn.net/m0_53052839/article/details/115362696