Example #1
0
        static void Main(string[] args)
        {
            //int[] a = { 1, 2, 4, 5, 3, 6, 7, 8 };

            //ml.addManyTail(a);
            //ml.traverse();
            //Console.ReadKey();

            string[]     items = { "In vao cuoi danh sach", "In danh sach" };
            int          choice;
            MyList <int> ml = new MyList <int>();

            do
            {
                choice = Menu(items);
                switch (choice)
                {
                case 0:
                {
                    Console.Write("Nhap 1 so");
                    int x = Convert.ToInt32(Console.ReadLine());
                    ml.addTail(x);
                    break;
                }

                case 1:
                {
                    Console.Write("Nhap so ke tiep");
                    int x = Convert.ToInt32(Console.ReadLine());
                    break;
                }
                }
            } while (true);
        }