// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
//
// AStack.h
//
#ifndef AStack_h
#define AStack_h
template
class AStack
{
protected:
T * data ;
int capacity ;
int top ;
public:
AStack() : data(new T[100]), capacity(100), top(0){}
~AStack() { delete [] data ; capacity = 0 ; top = 0 ;}
void Error(char * s) const
{cerr<<"\nFatal error in AStack: " << s << endl ; exit(1) ;}
T Top() const ;
T Pop() ;
void Push(const T&) ;
bool IsEmpty() const ;
};
#endif
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)