Пример #1
0
        public LibStack push(Library lib)
        {
            LibStack l = new LibStack(lib);

            l.next = this;
            return(l);
        }
Пример #2
0
        public Library pop()
        {
            Library L = library;

            if (next != null)
            {
                library = next.library;
                next    = next.next;
            }
            return(L);
        }
Пример #3
0
 public LibStack(Library lib)
 {
     library = lib;
     next    = null;
 }