如题各位大侠有什么高招啊

解决方案 »

  1.   

    哦 能给个demo看下不,谢谢了
      

  2.   

    Stack(栈)类实现了一个后入先出(list-in,first-out,LIFO)机制,元素在顶部入栈(push),也从顶部出栈(pop),通常可以将栈想象成一叠盘子,新盘子叠加到顶部,同样从顶部取走盘子,换言之,最后一个放到栈上的盘子总是第一个被取走的。
      

  3.   

    LinkedList 这个东西已经实现了栈的功能,我找下相关的信息
      

  4.   

     Stack<int> stackInt = new Stack<int>();
                stackInt.Push(1);
                stackInt.Push(2);
                stackInt.Push(3);            while (stackInt.Count>0)
                {
                    Console.WriteLine(stackInt.Pop().ToString());
                }
                Console.ReadKey();