1
0
mirror of https://github.com/Didnelpsun/CS408.git synced 2026-02-07 12:54:09 +08:00

更新链表

This commit is contained in:
Didnelpsun
2021-09-14 23:41:28 +08:00
parent 189f9250c3
commit 028cf20dde
6 changed files with 682 additions and 430 deletions

View File

@@ -32,11 +32,12 @@ bool LinkListTest() {
auto* list = new LinkListWithoutHead();
list->NextInsert(a, 0 ,5);
list->Print();
int len = 3;
int len = 5;
element_type* b = list->Delete(2, len);
for (int i = 0; i < len; i++) {
cout << b[i] << endl;
}
list->Print();
cout << list->Locate('1') << endl;
return true;
}