General discussion

Locked

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.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums