Question: I need their not to be a class linked List and should just have a pointer to the class within the Phone #include stdlib.h #include
I need their not to be a class linked List and should just have a pointer to the class within the Phone #include stdlib.h
#include iostream
using namespace std;
class Phone
public:
int Areacode;
int exchange;
int number;
bool unlisted;
Phone next;
Phone
thisAreacode;
thisexchange;
thisnumber;
thisunlistedfalse;
Phoneint area,int exc, int num, bool unlist
thisAreacodearea;
thisexchangeexc;
thisnumbernum;
thisunlistedunlist;
void setPhoneint area,int exc, int num, bool unlist
thisAreacodearea;
thisexchangeexc;
thisnumbernum;
thisunlistedunlist;
void pntPhone
cout
code;
ifcode
ifcode code
cout
Invalid input";
return ;
cout
Enter the Exchange:";
cinexc;
ifexc exc
cout
Invalid input";
return ;
cout
Enter the number:";
cinnum;
ifnum num
cout
Invalid input";
return ;
cout
Is number unlisted: true: false:;
cinunlist;
pisetPhonecodeexc,num,unlist;
aaddPhonepi;
i;
whilecode;
forint j;j
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
