class C_Stack //a STACK is like a pez dispenser; 'first in last out'-FILO
{
public: //these are unprotected functions
C_Stack(); //class CONSTRUCTOR
~C_Stack(); //class DESTRUCTOR
bool isFull(); //class member function;checks to see if stack is full; returns a TRUE or False
bool is Empty(); // checks stack to see if its empty; retutns T/F
void Push(int a); //puts an integer into the stack
int Pop(int &a); //takes out an integer from the stack
int Top(); //tells you whats on top of the stack
void MakeEmpty(); //cleares the stack of any info
private: //these are protected information
int MAX = 10; //the max items that can be in the stack
int key = 0; //how many items are currently in the stack
int stack[MAX]; //an array to hold all that juicy info
}; //don't forget that semi-colon at the end!$%#!
{
public: //these are unprotected functions
C_Stack(); //class CONSTRUCTOR
~C_Stack(); //class DESTRUCTOR
bool isFull(); //class member function;checks to see if stack is full; returns a TRUE or False
bool is Empty(); // checks stack to see if its empty; retutns T/F
void Push(int a); //puts an integer into the stack
int Pop(int &a); //takes out an integer from the stack
int Top(); //tells you whats on top of the stack
void MakeEmpty(); //cleares the stack of any info
private: //these are protected information
int MAX = 10; //the max items that can be in the stack
int key = 0; //how many items are currently in the stack
int stack[MAX]; //an array to hold all that juicy info
}; //don't forget that semi-colon at the end!$%#!