Question: IN C++ Pointer Exercises: Problem One: Consider a company that needs to sort an array Person data[10] of structures of type Person by name. struct
IN C++

Pointer Exercises: Problem One: Consider a company that needs to sort an array Person data[10] of structures of type Person by name. struct Person \{ string name: int age: \} Write a program that sorts the array of pointers so that when you go through Person *pData[10] in increasing order of index k, the entries pData[k] point to Person objects in ascending alphabetic order of names. Problem Two: Rewrite the above program with class so that the array of pointer points to the data array in descending order of age. Also, Include the following overloading operators for your class: - to alcept input from keyboard. - to display output. -
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
