static void Main(string[] args) { Stackk one = new Stackk(); Queuee two = new Queuee(); ArrayListt tree = new ArrayListt(); HashTablee four = new HashTablee(); try { //one.PervoeZadanie(); //one.VtoroeZadanie(); //one.TretieZadanie(); //one.ChetvertoeZadanie(); //two.PervoeZadanie(); //two.VtoroeZadanie(); //two.TretieZadanie(); //two.ChetvertoeZadanie(); //tree.PervoeZadanie(); //tree.VtoroeZadanie(); //tree.TretieZadanie(); //tree.ChetvertoeZadanie(); four.Vibor(); } catch (Exception e) { Console.Write("!" + e); } Console.WriteLine("\nEnd"); Console.ReadKey(); }
public static void Main() { var queue = new Queuee<int>(); queue.Enqueue(5); queue.Enqueue(12); queue.Enqueue(30); Console.WriteLine(queue.Dequeue()); Console.WriteLine(queue.Dequeue()); Console.WriteLine(queue.Dequeue()); }