在C++語言中可將堆疊定義如下: //堆疊能使用的最大項目數#define N 100 class stack { private: int num[N]; int top; public: StackInit() {top = 0;} ...
確定! 回上一頁