int top = 0; //stack push data void push(int data) { stack[top++] = data; } //stack pop data int pop() { return stack[--top]; }
確定! 回上一頁