Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Stack A = new Stack("Myname", "Myorganization");

            A.Push(1);
            A.Push(2);
            A.Push(-3);
            A.Push(4);
            A.Push(2);
            A.Push(-2);
            Stack B = new Stack("Slava", "BSTU");

            B.Push(6);
            B.Push(2);
            B.Push(10);

            Console.WriteLine("Counter '!'   " + MyMath.ExclamatorySentences("1s!wqsa!"));
            Console.WriteLine("Negative    " + MyMath.NegativeElements(A));

            //bool t=A < B;
            //A=A - 2;
            //A++;
            //MyMath.Cube(ref A);
            //MyMath.Null(ref A);
            // Console.WriteLine(MyMath.Sum(ref A));  Console.WriteLine();


            while (A.Head != null)
            {
                Console.WriteLine(A.Pop());
            }

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine(A.Date);
            Console.WriteLine(A.Name);
            Console.WriteLine(A.Organization);



            Console.ReadKey();
        }