1
0
mirror of https://github.com/Didnelpsun/CS408.git synced 2026-02-06 12:23:47 +08:00

更新进程管理

This commit is contained in:
Didnelpsun
2021-08-22 23:55:24 +08:00
parent 4b5bdc1edc
commit ddd6900ba6
5 changed files with 268 additions and 93 deletions

View File

@@ -22,12 +22,14 @@ int LinkListTest() {
LinkListWithHead list;
//cout << list.Empty() << endl;
element_type a[6] = { '1','2','3','4','5','6' };
list.PriorInsert(a, 2, 3);
list.NextInsert(a, 0, 5);
list.Print();
cout << list.GetLength() << endl;
list.Delete(2, 3);
list.Print();
/*cout << list.GetLength() << endl;
LinkListWithoutHead list2;
list2.PriorInsert(a, 2, 3);
list2.Print();
cout << list2.GetLength() << endl;
cout << list2.GetLength() << endl;*/
return 0;
}