StackGeneric and Stack

it2022-05-09  27

Stack<T> and Stack Class Diagrams Using it. code  1using System; 2using System.Collections.Generic; 3class Program 4{ 5 6    static void Main() 7    { 8        Stack<int> stack = new Stack<int>(); 9        stack.Push(1);10        stack.Push(2);11        Console.WriteLine(stack.Pop());12        Console.ReadKey();13    }14}

转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/05/11/742519.html


最新回复(0)