Beispiel #1
0
        static void Main(string[] args)
        {
            Dequeue <int> q = new Dequeue <int>();

            for (int i = 1; i <= 12; i++)
            {
                q.insertFront(i);
            }

            q.printQueue();

            q.deleteFront();
            q.deleteFront();

            q.insertFront(11);
            q.insertFront(12);

            q.printQueue();

            q.deleteRear();
            q.deleteRear();

            q.insertRear(13);
            q.insertRear(14);

            q.printQueue();
        }