The first part is given in the following pic Write the follo

The first part is given in the following pic:
Write the following function in the next pic:

#include using namespace std; template typename ElementType> class Dec public: //hasDuplicate function that returns true if the private data member has an item that//appears twice or more in the list. bool hasDuplicate0 //eraseAll function to remove all items which are equal to the item specified in the //function parameter. void eraseAll (ElementType element); //isLessThan function to determine if another Dec object is greater than the Dec//object itself. //If the summation of all items from the Dec object itself is less than the summation //of all //items from another Dec object, return true, otherwise, return false. bool isLessThan(Dec other); //push second function to add an item after the first item if there are more than one //items. void push_second(ElementType element); private: vector ElementType> dec;

Solution

Solution:

//inserting into list

{

The first part is given in the following pic: Write the following function in the next pic: #include using namespace std; template typename ElementType> clas

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site