/*Program to sort a given set of elements using the Merge sort method*/ #include class Msort { private: int a[10],n,low,high; public: void readarray(); void rmsort(); void msort(int,int); void Merge(int,int,int); void display(); }; void Msort::readarray() { cout<<"ENTER THE NUMBER OF ELEMENTS"<>n; cout<<"ENTER THE ELEMENTS"<>a[i]; low=0; high=n-1; } void Msort::rmsort() { msort(low,high); } void Msort::msort(int low,int high) { if(low