示例#1
0
        public int pop()
        {
            int val = head.Val;

            head = head.Next;
            return(val);
        }
示例#2
0
 public IntNode(int i, IntNode n)
 {
     Val  = i;
     Next = n;
 }
示例#3
0
 public void push(int i)
 {
     head = new IntNode(i, head);
 }