public Node pop() { LLst TL = new LLst(); Node lastNode = GetLastNode(); return(lastNode); }
static void Main(string[] args) { LLst stack = new LLst(); stack.push(4); stack.push(7); stack.push(0); stack.pop(); Node n = stack.pop(); Console.WriteLine(n.data + " was taken from the top"); /*stack.pop(); * n = stack.pop(); * Console.WriteLine(n.data + " was taken from the top"); */ //stack.printlist(); Console.ReadKey(); }