Question: With the given fun_driver.cpp, write a fun_list.h file so that the fun_driver file will output the following. You must implement your fun_list class using a

With the given fun_driver.cpp, write a fun_list.h file so that the fun_driver file will output the following. You must implement your fun_list class using a dynamic array. You must write a destructor, a copy constructor and overload the assignment operator. Your destructor must print DELETE, the copy constructor must print COPY and the overloaded assignment operator must print ASSIGNMENT. See the example on the next page. You can not hard code your answer.

//fun_driver.cpp

#include

#include "fun_list.h"

int main(){

fun_list fl1;

fl1.add('A',5);

fl1.add('O',2);

fl1.add('l',2);

fl1.add('D',2);

fl1.add('3',4);

fl1.add('o',4);

fl1.add('E',-1);

fl1.add('S');

fl1.add('h',10000);

fl1 = fl1;

std::cout

fun_list fl2 = fl1;

fl2 = fl1*3;

std::cout

std::cout

std::cout

std::cout

std::cout

if(true){

fun_list fl3 = fl2;

std::cout

std::cout

std::cout

std::cout

std::cout

}

fun_list flu;

flu = fl2.unique();

std::cout

}

With the given fun_driver.cpp, write a fun_list.h file so that the fun_driver

//

USE C++ PLEASE

With the given os_driver.cpp and the three matrix text files. Write a fun_list.h file so that the fun_driver file will output the following. You must implement your fun_list class using a dynamic array. You must write a destructor, a copy constructor and overload the assignment operator. Your destructor must print DELETE, the copy constructor must print COPY and the overloaded assignment operator must print ASSIGNMENT. See the example on the next page. You can not hard code your answer. Note that your assignment, delete and copy statements may differ slightly based on implementation. vocstartsoft:~/environment/Assignment. $ ./fd 3 IS NOT A LETTER --ASSIGNMENT SE AOD LOH --COPY- --ASSIGNMENT --DELETE- SSSEEEAAAOO ODDD LLLOOOHHH TRUE SSS E E A A A O OD DDL O O O HH FALSE SSSEE AAA LODDD O O O OHH ----COPY --- FALSE SSS E E A A ALHDD D 0 0 0 0 HO TRUE SSSEEA DDOO O SSSE E A A A LODDD O O O O HH -DELETE ---ASSIGNMENT- --DELETE- ADELOS ---DELETE- --DELETE- --DELETE- vocstartsoft:-/environment/Assignment. $ |

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!