예제 #1
0
 public static void pushM(Scroll Q, int[] data)
 {
     for (int i = 0; i < data.Length; i++)
     {
         if (data[i] != 0)
             Q.Push(data[i]);
     }
 }
예제 #2
0
 public static void delete(Scroll Q)
 {
     while (!Q.Empty())
     {
         Console.WriteLine(Q.Pop());
     }
 }