c++ - Undo/Redo with linked lists -


i have written program many different things linked list. asks user enter different lines of text linked list. can either enter line @ end of list of @ random line number. or can delete line. need write function or 2 when called upon undo or redo last command , can undo or redo 10 commands in row. ideas best way go undoing commands involving linked lists?

you need store history of commands in list. undo, @ recent command , reverse action.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -