1. We are going to finish the Mvector class, and begin todevelop and implement the template class Ml

Stuck with a difficult assignment? No time to get your paper done? Feeling confused? If you’re looking for reliable and timely help for assignments, you’ve come to the right place. We promise 100% original, plagiarism-free papers custom-written for you. Yes, we write every assignment from scratch and it’s solely custom-made for you.


Order a Similar Paper Order a Different Paper

1. We are going to finish the Mvector class, and begin todevelop and implement the template class Mlist developed in class.FOLLOW THE STEPS BELOW. -First add iterators to the class Mvector. Write the functionsand test them with a main program. (THE ITERFACE IS BELOW) templateclass Mvector{ public: typedef T* iterator; Mvector(); Mvector(unsigned int n); void pushback(T x); void popback(); void clear(); void insert(int i, T x); void erase(int i); T operator[] (unsigned int i); void operator– (int); int size(); iterator begin() {return v;} iterator end() {return v+vsize;} void insert(iterator ix, T x); void erase(iterator ix); private: int vsize; int vcap; T *v; void reserve(unsigned int n);}; -Next create the interface for the class along with functionstubs. (THE ITERFACE IS BELOW) #includeusing namespace std;template class Lnode{ public : T data; Lnode *lptr; Lnode *rptr;};template class Mlist{ public : Mlist(); void add(T x); void del(T x); T getfront(); private : Lnode *first; Lnode *last; int lsize;}; -Add stubs for each member function and test the compilation(c++ -c). -Write the functions and test the compilation. -Write a main program that tests the class functions. (Use thepseudo-random number generator to create a list and add and removeelements from the list. . . .

Writerbay.net

We’ve proficient writers who can handle both short and long papers, be they academic or non-academic papers, on topics ranging from soup to nuts (both literally and as the saying goes, if you know what we mean). We know how much you care about your grades and academic success. That's why we ensure the highest quality for your assignment. We're ready to help you even in the most critical situation. We're the perfect solution for all your writing needs.

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper