We are going to finish the Mlist class, and begin to develop andimplement the template class Mtree developed in class.
-(THE UPDATED INTERFACE IS BELOW)
#include<iostream>using namespace std;template <typename T>class Lnode{ public : T data; Lnode *lptr; Lnode *rptr;};template <typename T>class Mlist{ public : Mlist(); void add(T x); void add(,int i,T x); void del(T x); void delete(int i); T getfront(); T getback(); T operator[] (unsigned int i); private : Lnode<T> *first; Lnode<T> *last; int lsize;};
-Add the following functions to the Mlist class.
void
PayPal Gateway not configured
PayPal Gateway not configured