数据结构中bool DeleteList(List &L,ElemType& item,int pos)各代表什么意思?
这是删除列表中指定位置的元素函数,同时获取被删除的元素值。
List &L --- 这是列表或链表
ElemType &item---这是返回参数,返回被删除的元素值
int pos---这是需要删除的元素的位置,表示要删除第几个元素
函数返回值为bool型,表示删除是否成功
bool DeleteList(List &L,ElemType& item,int pos)
猜测下
删除列表L中item元素,返回是否删除,pos可能是用来返回删除的位置(int *才合理)