1. 程式人生 > >大頭鍛鍊日記2 -- 無指標和結構體的vbscript中實現單向連結串列

大頭鍛鍊日記2 -- 無指標和結構體的vbscript中實現單向連結串列

'-------------------------------  '    調 '-------------------------------  Dim TestLS Set TestLS=New List             ' MsgBox TestLS.IsRaw             ' MsgBox TestLS.getLength         ' TestLS.AddHead "W"              ' TestLS.AddHead "S"               TestLS.AddTail 44
               ' TestLS.AddTail 33 TestLS.AddTail "P" TestLS.AddTail 22 TestLS.AddTail 77 TestLS.AddHead "O" TestLS.AddHead 99 TestLS.AddHead 66 MsgBox TestLS.getLength           MsgBox TestLS.Print           TestLS.Delete 3                 ' MsgBox TestLS.Print           MsgBox
 TestLS.getLength       TestLS.AddIndex "N",3           ' MsgBox TestLS.Print              MsgBox TestLS.getLength TestLS.Clear                    ' MsgBox TestLS.IsRaw MsgBox TestLS.getLength