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++

IN C++ Pointer Exercises: Problem One: Consider a company that needs to

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. - =,==, and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!