stack5 - int Top(); void Push(int d); void Pop();...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Public/Protected/Private Class Members class Stack { public: Stack() { size = 0; } // Constructor ~Stack() { } // Destructor int Top(); void Push(int d); void Pop(); private: int data[STACK_MAX]; int size; }; class Stack { public: Stack() { size = 0; } // Constructor ~Stack() { } // Destructor
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int Top(); void Push(int d); void Pop(); protected: int data[STACK_MAX]; int size; }; class Stack { public: Stack() { size = 0; } // Constructor ~Stack() { } // Destructor int Top(); void Push(int d); void Pop(); int data[STACK_MAX]; int size; };...
View Full Document

Page1 / 2

stack5 - int Top(); void Push(int d); void Pop();...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online