Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string path = "Input.txt";
            string str  = "";

            using (StreamReader sr = new StreamReader(path))
            {
                str = sr.ReadLine();
            }
            int d = 0;
            int n = 4;

            string[] words = str.Split(new char[] { ' ' });
            MyList   list  = new MyList();

            foreach (string s in words)
            {
                list.Add(Int32.Parse(s));
                Console.Write(s);
            }
            Console.WriteLine();
            list.AddD(list, n, d);
            words = list.Printer();
            foreach (string s in words)
            {
                Console.Write(s);
            }

            //Console.WriteLine("Hello World!");

            Console.ReadKey();
        }