Beispiel #1
0
        private void WorkWithDeq(int maxSize)
        {
            ShowName("Dequi");
            DequeryStruct <long> dequ = new DequeryStruct <long>(maxSize);

            dequ.InsertLeft(1);
            dequ.InsertRight(2);
            dequ.InsertLeft(3);
            dequ.InsertRight(4);
            dequ.InsertLeft(5);
            dequ.InsertRight(6);
            dequ.InsertLeft(7);
            dequ.InsertRight(8);

            while (!dequ.IsEmpty())
            {
                Console.WriteLine(dequ.RemoveRight());
            }
            ShowEndMessage();
        }
 public T Pop()
 {
     return(deq.RemoveRight());
 }