Implement class person with the following fields:- the name- a pointer to the person’a best friend (a person*)- a popularity counter that indicates how many other peoplehave this person as their best friend
Write a program that reads in a list of names, allocated a newPerson for each of them, and stores them Ima vector<Person*>.Then ask the name of the best friend for each of the Personobjects. Locate the object matching the friend’s name and call aset_best_friend member function to update the longer and counter.Finally, print out all Person objects, listing the name, bestfriend, and popularity counter for each.
PayPal Gateway not configured
PayPal Gateway not configured