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

更新链表

This commit is contained in:
Didnelpsun
2021-09-13 23:34:01 +08:00
parent 02e490f1af
commit 189f9250c3
2 changed files with 11 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
#include "../head/sequence_list.h"
#include "../head/link_list.h"
int SequenceListTest() {
bool SequenceListTest() {
DynamicSequenceList list;
element_type a[6] = {'1','2','3','4','5','6'};
list.LoopInsert(a, 0, 6);
@@ -14,10 +14,10 @@ int SequenceListTest() {
cout << b[i] << endl;
}
list.Destroy();
return 0;
return true;
}
int LinkListTest() {
bool LinkListTest() {
element_type a[6] = {'0', '1','2','3','4','5' };
// LinkListWithHead list;
// list.NextInsert(a, 0, 5);
@@ -38,5 +38,5 @@ int LinkListTest() {
cout << b[i] << endl;
}
list->Print();
return 0;
return true;
}