Write a program that accepts a postfix notation keyed into a text field when a button labeled “push” is pressed. A button labeled “pop” causes the item to be popped and displayed in the text field.
ganito po yun,
meron kang textbox sa taas, tapos PUSH at POP buttons sa ilalim.
enter ka ng POSTFIX notation sa textbox. yung postfix notation is nasa huli yung operator. ( 5 5 + )
tapos, click mo yung PUSH, pasok niya sa stack yung input mo, tsaka mawawala na sa textbox.
then, if yung POP button naman is, i.show niya ulit yung ipinasok mo. ganun lg.
PS: ND niya tatanggapin ang input kung nd naka.postfix notation or mali ang syntax. dapat may spacing to separate the operands and the operators. Thanks po sa makakatulong. kailangan ko po talaga. ;[
- 6 views