摘要:
Option Explicit'定義堆棧的結構Public Type StackStruct Size As Integer'當前Stack中元素的個數 Pointer As Integer '指向Stack中棧頂的指針 MaxElementCount As Integer 'Stack中可以放入的元素的個數 Element() As Integer 'Stack中用於放置元素的數組 End Type'根椐用戶指定的StackSize來創建一個堆棧Public Function CreateStack(StackSize As Integer) 阅读全文