// L-11 MCS 360 Fri 17 Sep 2010 : test_mcs360_list.cpp

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

int main()
{
   List<int> L(3);

   L.append(5);
   L.write();
   cout << endl;

   cout << "give a number : ";
   int n; cin >> n;

   if(L.member(n))
      cout << n << " belongs" << endl;
   else
      cout << n << " does not belong" << endl;

   L.erase(3);
   cout << "after erasing 3 : "; L.write();
   cout << endl;

   L.append(4);
   cout << "after appending 4 :"; L.write();
   cout << endl;

   L.erase(4);
   cout << "after erasing 4 : "; L.write();
   cout << endl;

   return 0;
}

