Page 428 - C++
P. 428
}
};
/*****************************************************/
class stack
{
long int s[50];
int top;
public:
stack()
{
top=-1;
}
void push(long);
long pop();
};
/****************************************************/
void cont() //sub menu for contact
{
clrscr();
int c;
char rep;
do
{
clrscr();
setgraphmode(getgraphmode());
setbkcolor(0);
back();
settextstyle(1,0,8);
outtextxy(50,20,"$ CONTACTS $");
settextstyle(3,0,3); //displaying sub menu of contact
outtextxy(100,140," 1. ADD A CONTACT ");
outtextxy(100,200," 2. DELETE A CONTACT ");
outtextxy(100,260," 3. MODIFY A CONTACT ");
outtextxy(100,320," 4. EXIT ");
outtextxy(55,376,"Enter your choice ___");
gotoxy(36,25);
cin>>c;
restorecrtmode();
switch(c) //calling diff contact func
{
case 1: add_contact();
break;
case 2: delete_contact();
break;
case 3: modify_contact();
break;
case 4: return;
default :cout<<"\nInvalid Choice";
}
getch();
clrscr();
cout<<"\n Do You Want To Go Back To Sub MENU ? ";
cin>>rep;