《入栈》是宋代诗人孙应时的作品之一。
... int top; /* 栈顶所在的位置 */ char(*pop)(struct stack *sta); /* 出栈 */ int (*push)(struct stack *sta, char data); /* 入栈 */ ...
基于2个网页-相关网页
入栈和出栈是非常快速和确定性。
栈由编译器自动分配释放,有专门的入栈出栈指令,具有较高的效率。
Stack is automatically allocated and released by C++ complier. It has more efficiency using specific push/pop instructions.
当它是一个操作符时,从栈中弹出两个数进行运算,并且将运算结果压入栈中。
When it is an operator, pop two Numbers from the stack, do the calculation, and push back the result.
应用推荐