示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            MyQueue q = new MyQueue();

            q.Push(1);
            q.Push(2);
            q.Push(3);
            var v = q.Pop();

            q.Push(4);
            v = q.Pop();
        }
示例#2
0
        static void Main(string[] args)
        {
            MyQueue obj = new MyQueue();

            obj.Push(1);
            obj.Push(2);
            obj.Push(3);
            obj.Push(4);
            obj.Push(5);
            obj.Push(6);
            obj.Push(7);
            int  param_2 = obj.Pop();
            int  param_3 = obj.Peek();
            bool param_4 = obj.Empty();
        }