yorkxin/cs193p-calculator

[A2] Task 10: Undo Button

Opened this issue · 0 comments

  1. Add an Undo button to your Calculator. In Assignment 1’s Extra Credit, you might have added a “backspace” button. Here we’re talking about combining both backspace and actual undo into a single button. If the user is in the middle of entering a number, this Undo button should be backspace. When the user is not in the middle of entering a number, it should undo the last thing that was done in the CalculatorBrain. Do not undo the storing of variable values (but DO undo the setting of a variable as an operand).