#include “iostream.h”
#include “process.h”
class stack
{
private : int *s, sp,max;
public :
void push (); // to push item into stack
void pop ( ); // to delete an item
void display ( ); // to display the contents of stack
stack (int); // constructor
int isfull();
int isempty();
};
Sunday, November 29, 2009
Source code for Stack using Array method
Posted by Janaki Narayanamma P at 3:32 AM 0 comments
Subscribe to:
Posts (Atom)