Click on array_stack.h to get source.
/* File: C++Examples/Stacks/array_stack.h */
#include <iostream>
#include "stack.h"
/* This is the Data Structure used to implement the stack:
array[top-1] is the last element entered, array[0] the first */
class array_stack : public stack {
int top;
int array[20];
public:
array_stack () : top(0) {}
bool is_empty(void) const;
void push(int);
int pop(void);
stack* clone(void) const;
~array_stack() {}
};