Question: Step 4 : Implement GroceryList's ExecuteUndo ( ) member function Implement GroceryList's ExecuteUndo ( ) member function to do the following: Pop an UndoCommand off
Step : Implement GroceryList's ExecuteUndo member function
Implement GroceryList's ExecuteUndo member function to do the following:
Pop an UndoCommand off the undo stack
Execute the popped undo command
Delete the undo command
File main.cpp has some test functions. Each constructs a GroceryListTest object from a list of string commands. Test tests code implemented so far: insertion and undo of insertion. Calls to other test functions are commentedout in main Run your code and make sure that test passes before proceeding.
Step : Implement the SwapCommand class and GroceryList's SwapWithUndo member function
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
