Beispiel #1
0
        static void Main(string[] args)
        {
            MyList list = new MyList();
            MyNode p    = new MyNode(5, null, null);

            for (int i = 0; i <= 10; i++)
            {
                list.Add(i);
            }
            list.Printer();
            Console.ReadKey();
            Console.WriteLine();
            Console.WriteLine("FindNode(5) = {0}", list.FindNode(5).Inf);
            Console.ReadKey();

            Console.WriteLine();
            list.Delete(p.Inf);
            list.Printer();
            Console.ReadKey();

            Console.WriteLine();
            Console.WriteLine("Insert(p,55)");
            list.Insert(p, 55);
            list.Printer();
            Console.ReadKey();
        }