Main Page | Class List | File List | Class Members | File Members

stack Class Reference

Stack Class. More...

#include <stack.h>

List of all members.

Public Member Functions

 stack ()
 A Constructor.
int push (char)
 Push an element into the stack.
int pop (char &)
 Pop out an element from the top of the stack.
void display (void)
 Displays the content of the stack.
 ~stack ()
 A Destructor.


Detailed Description

Stack Class.


The class to do the elementary operations on stack and demostarte the functionality of the Documentation management system "Doxygen"


Constructor & Destructor Documentation

stack::stack  ) 
 

A Constructor.

The constructor of the class stack to initialize all the member variables of the class stack

Parameters:
None 
Returns:
None


Member Function Documentation

void stack::display void   ) 
 

Displays the content of the stack.

Function to Display the content of the stack

Parameters:
None 
Returns:
None

int stack::pop char &  cPop  ) 
 

Pop out an element from the top of the stack.

Function to pop an element from the stack.

Parameters:
cPop The character poped
Returns:
if any error the error code STACK_EMPTY else STACK_OPERATION_SUCCESS

int stack::push char  cPush  ) 
 

Push an element into the stack.

Function to push an element into the stack.

Parameters:
cPush The character to be pushed
Returns:
if any error the error code STACK_FULL else STACK_OPERATION_SUCCESS


Generated on Sat Jul 23 14:45:14 2005 for Stack by  doxygen 1.4.4