We have to make sure that when we enqueue the first entry, front and rear points to that entry. ... And you can retrieve or replace the entry in any position. ...
A3) Destructor is missing because the class uses dynamic memory to allocate memory space. ... Stack int SA, SB, SC; int prev, current; SA.Push(1); for (int i=2; ...
Recall the implementation of Push method of Stack class. void Stack::Push(const DataType& item) ... Stack int SA, SB, SC; int prev, current; SA.Push(1); for ...