/////// File: tstArStk.C /////// #include #include "ArbStack.h" // stack of integers via // generic ArbStack class static int a[] = {0,10,20,30,40,50}; int main() { ArbStack stack( a + 1); stack.push( a + 3 ); stack.push( a + 5 ); while ( ! stack.is_empty() ) cout << * (int *)stack.pop() << " "; cout << endl; return(0); }