Stack Algo
Back Home Up Next

 

  Theory

Projects

Articles

 Written Books

Report

Technical Report

Survey Reports

Workshop

Presentations

Tutorials

Algorithms

Contact Me

Yourself

wpe16.jpg (7444 bytes)

 

Step # 1: Define Library files

 

Step # 2: construct class Stack

 

Step # 3: Define data type, private and public

 

Step # 4: Constructor where top=-1i.e the stack should be

 

empty

 

Step # 5: For push of element, top is incremented as top++

 

Step # 6: For pop of element ,decrement in top as –top

 

Step # 7: Print all elements in stack

 

Step # 8: End of programme