Page 430 - C++
P. 430
{
clrscr();
setgraphmode(getgraphmode());
setbkcolor(0);
back();
settextstyle(1,0,8);
outtextxy(50,20,"^ SCHEDULE ^");
settextstyle(5,0,3); //displaying sub menu for
scheduler
outtextxy(100,140," 1. ADD ");
outtextxy(100,190," 2. DELETE ");
outtextxy(100,240," 3. MODIFY ");
outtextxy(100,290," 4. VIEW ");
outtextxy(100,330," 5. EXIT ");
outtextxy(55,376,"Enter your choice ___");
gotoxy(32,25);
cin>>s;
restorecrtmode();
switch(s)
{ //calling different scheduler functions
case 1: sch_add();
break;
case 2: sch_delete();
break;
case 3: sch_modify();
break;
case 4: sch_view();
break;
case 5: return;
default :cout<<"Invalid Choice";
}
clrscr();
cout<<"\n Do You Want To Go Back To Sub MENU ? ";
cin>>rep;
}while(rep=='y'||rep=='Y');
}
/*********************************************************/
void Clock()
{
int m,r=50;
setgraphmode(getgraphmode());
float gx,gy,x,y,x1,y1,xm,ym,xh,yh,k=0,i,j,ii,l;
struct time t;
void *mem;
int size;
ii=13.89;
setcolor(14);
line(159,100,159,387);
line(450,100,450,382);
line(159,100,450,100);
setcolor(14);