#include "RStackT.h"
#include <iostream>
using namespace std;

int main()
{
  Stack<int> intSt1, intSt2;  // stacks of ints
  Stack<char> charSt;         // stack of chars

  int i;
  for (i = 1; i <= 4; i++)
    intSt1.push(i);
  while (!intSt1.empty())
  {
    i = intSt1.top(); intSt1.pop();
    cout << i << endl;
  }
  intSt2.push(99); intSt2.push(100);
  cout << "Assigning a new stack to this oneL\n";
  intSt1 = intSt2;
  while (!intSt1.empty())
  {
    i = intSt1.top(); intSt1.pop();
    cout << i << endl;
  }

  for (char ch = 'A'; ch <= 'D'; ch++)
    charSt.push(ch);

  charSt.display(cout);
}
