Web Development

General discussion


Using the stack ADT

By adeq_cindy ·
Source code for program that simulates the operation of a calculator by scanning an integer expression in postfix form and displaying its result.The program should push each integer operand onto the stack.When an operator is encountered, the top two operand are popped,the operation is perfomed on its operands, and its result is pushed back onto stack.The final result should be the value remaining on the stack when the end of the expression is reached.The scientific calculator should at least handle the +,-,*,/,(,) operations.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums