Пример #1
0
    static void Main()
    {
        Console.WriteLine("Editing on GitHub here");
        classArray arr = new classArray();
        classStack sta = new classStack();
        classQueue que = new classQueue();
        string choice;
        do
        {

            Console.WriteLine("1.ArrayList\n2.Stack\n3.Queue");
            string ch;
            ch = Console.ReadLine();
            switch (ch)
            {
                case "1": arr.start();
                    break;
                case "2": sta.start();
                    break;
                case "3": que.start();
                    break;
                default:
                    Environment.Exit(0);
                    break;
            }
            Console.WriteLine("Do You wish to continue?\nY / N");
            choice = Console.ReadLine();
        } while (choice == "y" || choice == "Y");
    }