#include <iostream.h>
#include "stack2.h"

main()
{
   stack a, b;

   a.push(5);
   a.push(10);
   a.pop();
   a.push(30);
   a.push(40);

   while (a.size())
     b.push(a.pop());

   while (b.size())
      cout << b.pop() << '\n';
}

// This should output: 5 30 40
