I am supposed to write a program that holds holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator functions. Then demonstrate the class by writing a program that creates three instances of it. One instance should hold your information,and the other two should hold your friends' or family members' information.
I tried this so many times but it wont let me enter names for the friends or family numbers and that the only problem in this C++ CODE.
Please if you could help that would be great THanks.
here is the code
#include <iostream>
#include <string>
using namespace std;
class PersonalInfo
{
private:
string name;
string address;
int age;
string phonenumber;