Пример #1
0
        public void SetOfStacks()
        {
            SetOfStacks setOfStacks = new SetOfStacks(3);

            setOfStacks.push(10);
            setOfStacks.push(13);
            setOfStacks.push(9);
            setOfStacks.push(5);
            setOfStacks.push(11);
            setOfStacks.push(2);
            setOfStacks.push(4);
            setOfStacks.printListOfStacks();
            setOfStacks.pop();
            setOfStacks.pop();
            setOfStacks.pop();
            setOfStacks.printListOfStacks();
        }