If the character is an operator, pop two operands, perform the appropriate operation, and then push the result onto the stack.
如果字符是个操作符,弹出两个操作数,执行恰当操作,然后把结果压入堆栈。
The list of directories ACTS like a stack — you push a directory onto the top of the stack, and pop a directory off the top again to get it back.
该目录列表的行为就像一个堆栈——您将一个目录压入堆栈顶部,并从顶部弹出一个目录以取回它。
In this case, ensuring that pop throws an exception if push hasn't been called (or logically, if the stack is empty) means that the stack has a state.
在这种情况下,如果push没有被调用(或者从逻辑上讲,栈为空)的情况下确保pop抛出一个异常,则意味着栈有一个状态。
If you push the Numbers 2, 4, and 6 onto a stack and then pop the stack twice, you will get 6 and 4, in that order.
如果你向堆栈压入数据2,4,6,然后弹出栈两次,你将按照顺序得到6与4。
When each of the other elements are parsed, you pop the Employee object off the stack, call the relevant set function, and push the object back on to the stack.
每当其他元素被解析时,您将这个Employee对象弹出Stack,调用相关的set函数,然后将该对象推回Stack。
Arrays respond to push and pop, where push adds an item (at its last spot) and pop removes one (like a stack, from the last position).
Arrays支持push和pop操作,其中push增加项目(在其最后一个位置)而pop移除项目(就像堆栈,从最后一个开始)。
When it is an operator, pop two Numbers from the stack, do the calculation, and push back the result.
当它是一个操作符时,从栈中弹出两个数进行运算,并且将运算结果压入栈中。
Stack is automatically allocated and released by C++ complier. It has more efficiency using specific push/pop instructions.
栈由编译器自动分配释放,有专门的入栈出栈指令,具有较高的效率。
Stack is automatically allocated and released by C++ complier. It has more efficiency using specific push/pop instructions.
栈由编译器自动分配释放,有专门的入栈出栈指令,具有较高的效率。
应用推荐