Can someone please compile this program and send me the screen shot of the output of this program? I can not compile on the current computer I am on, and all I need is the output screen shot. Thank you so much! It is an analog clock program.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
#include<dos.h>
int main()
{
struct time *t1;
int gdriver =DETECT,gmode;
initgraph(&gdriver,&gmode,"");
while(1)
{
gettime(t1);
circle(300,150,100);
printf("The current time is: %2d:%02d:%02d.%02d\n", t1->ti_hour,t1->ti_min,t1->ti_sec);
if ( (t1->ti_hour) >12) {t1->ti_hour=t1->ti_hour-12;}
setfillstyle(1,BLUE);
pieslice(300,150,(360-(t1->ti_hour*30))+90,(360-(t1->ti_hour*30))+95,40);
setfillstyle(1,RED);
pieslice(300,150,360-(t1->ti_min *6)+90,360-(t1->ti_min*6)+95,80);
pieslice(300,150,360-(t1->ti_sec *6)+90,360-(t1->ti_sec*6)+91,90);
sleep(1);
}
getch();
closegraph();
return 0;
}