C/C++
cprog118.txt
Associated article: C Programming
Tags: C/C++
Published source code accompanying the column by Al Stevens in which he updates a C++ class template library that implements undo operations of interactive programs. The library assumes that the user modifies a document class object and might want to undo those modifications in reverse order.
C Programming Column by Al Stevens Example 1: void Insert(T* pInsertAt, const T& rEvent); void Delete(T* pDeleteAt); void SetUndoContext(C nContext); C GetUndoContext() const; Listing One // --------- undo.h #ifndef UNDO_H #define UNDO_H #include <deque&...


