Question: Finish the Implementation of the Sequence class. Test your implementation by running the following set of commands: 1.Create sequence called seq; 2.Insert numbers 5, 2,
Finish the Implementation of the Sequence class.
Test your implementation by running the following set of commands:
1.Create sequence called seq;
2.Insert numbers 5, 2, 200, -3.0, 45, -55.5
3.Print out sequence
4.Remove the -3.0
5.Print out sequence
------------------------------------------------
#include// Provides copy function #include // Provides assert function #include "sequence.h" using namespace std; namespace main_containers { const sequence::size_type sequence::CAPACITY; void sequence::remove_current() { size_type i; if (!is_item()) current_index = 0; for (i = current_index; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
