关闭页面特效

06 2020 档案

摘要:#1.递归删除所有值为x的节点 void Del_X(LinkList &L,int x){ if(L == null) return; //递归出口 if(L->next != x){ Del_X(L->next,x); //若L指的节点不为x,那么就继续向后走 return; } LNode * 阅读全文
posted @ 2020-06-05 14:38 xiaoff 阅读(746) 评论(0) 推荐(0) 编辑
摘要:#1.搜索顺序表,查找最小值元素,用最后的元素代替它 ##思路:先找到最小值,再替换 bool DelMin(sqlList &L,Elemtype &value){ if(L.length == 0)return false; int min = L.data[0]; int index = 0; 阅读全文
posted @ 2020-06-03 19:53 xiaoff 阅读(392) 评论(2) 推荐(1) 编辑

点击右上角即可分享
微信分享提示