Question: Hello, I need the code written in C++ for the question posted below. I am not allowed to use global variables, so please don't do

Hello, I need the code written in C++ for the question posted below. I am not allowed to use global variables, so please don't do so.

Hello, I need the code written in C++ for the question posted

This problem involves classes, so please try to use them within the coding. I believe the program is supposed to ask the user when ran for the names of the people and their friends. Any help for this is appreciated, I am having pretty big difficulties trying to write the code for this. Thank you for your help.

A Person has a name (just a first name for simplicity) and friends. Store thenames of the friends in a string, separated by spaces. Provide a constructor that constructs a person with a given name and no friends. Provide member functions -P9.2 void befriend (Person p) void unfriend(Person p) string get friend names)

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!