// Borland C++ - (C) Copyright 1991 by Borland International

// ex8.cpp:   Using the Stack Class
// from Getting Started
#include "stack.h"

main()
{
   Stack s(5);
   int i = 0;

   // Insert the numbers 1 through 5
   while (s.push(i+1) == 0)
      ++i;

   s.print();
}
