예제 #1
0
        static void Main(string[] args)
        {
            Lista <int> list = new Lista <int>();

            list.AddToEnd(10);
            list.AddToEnd(11);
            list.AddToEnd(13);
            list.AddToBegin(2567);
            list.print();
            Console.WriteLine(" ");
            Console.WriteLine(list.DeleteFirst());
            Console.WriteLine(list.DeleteLast());
            Console.WriteLine(" ");
            list.print();
        }
예제 #2
0
 public static void Main()
 {
     Lista<string> l = new Lista<string>();
     l.AddToBeginning("test1");
     l.AddToBeginning("test2");
     l.AddToBeginning("test3");
     Console.WriteLine(l.Top() + l.Bottom() + "\n");
     l.AddToEnd("endTest");
     Console.WriteLine(l.Top() + l.Bottom());
     Console.ReadKey();
 }