Question: PLEASE PUT 3 FILES! SEPERATELY! FOR C++ ********You will submit three files:********** A simple test program for your List class --your test program must use
PLEASE PUT 3 FILES! SEPERATELY! FOR C++
********You will submit three files:**********
A simple test program for your List class --your test program must use at least the test case shown below
Your List class header file
Your List class implementation file
This implementation of the List class needs an internal member that is an array. The member functions will need to know how many values that array can hold and take care not to overflow the array. The solution below has an internal limit of 50 values. (FYI, we will revisit this same problem in a future lesson when we learn about dynamically expanding arrays, and will implement a better version that has no inherent limit.)
Here is the core of a simple test program for a list class object.
// First add some data
for (int i = 0; i
{
cout
cin >> temp;
testList.addValue(temp);
}
// Exercise member functions
cout
cout
cout
testList.deleteLast();
cout
cout
while (!testList.full())
{
testList.addValue(100.0);
}
cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
