예제 #1
0
        static void Main(string[] args)
        {
            stack logs = new stack(1025);
            int   i    = 0;
            int   ii   = 0;

            logs.reported = true;
            for (i = 0; i < 20; i++)
            {
                logs.push(i);
            }
            logs.reported = false;
            logs.reporter();
            logs.dec();
            ii = logs.SP;
            for (i = 0; i < ii; i++)
            {
                Console.Write(" PoP:{0} ", logs.pop());
            }
            Console.WriteLine("");
        }