Пример #1
0
        static void Main(string[] args)
        {
            PriorityQueue queue = new PriorityQueue();

            queue.Enqueue('o', 4);
            queue.Enqueue('y', 8);
            queue.Enqueue('p', 1);
            queue.Enqueue('i', 3);
            queue.Enqueue('r', 2);
            queue.Enqueue('i', 6);
            queue.Enqueue('r', 5);
            queue.Enqueue('t', 7);
            queue.PrintQueue();
            Console.Write(queue.Dequeue());
        }
Пример #2
0
 public void Initialize()
 {
     queue = new PriorityQueue();
 }