Professional Documents
Culture Documents
C++ Sat
C++ Sat
h)
#include(stdio.h)
#include(time.h)
int main()
int gd=DETECT;
int coordsForMinSecX[60]={0,18,35,53,69,85,100,114,126,138,
147,155,162,166,169,170,169,166,162,155,
147,138,126,114,100,85,69,53,35,18,
0,-18,-35,-53,-69,-85,-100,-114,-126,-138,
-147,-155,-162,-166,-169,-170,-169,-166,-162,-155,
-147,-138,-126,-114,-100,-85,-69,-53,-35,-18,};
int coordsForMinSecX[60]={-170,-169,-166,-162,-155,-147,-138,-126,-114,-100
-85,-69,-53,-35,-18,-0,18,35,53,69,
85,100,114,126,138,147,155,162,166,169,
170,169,166,162,155,147,138,126,114,100,
85,69,53,35,18,0,-18,-35,-53,-69
-85,-100,-114,-126,-138,-147,-155,-162,-166,-169};
time_t rawTime;
struct tm * currentTime;
char a[100];
int IMS;
while(1)
currentTime= localtime(&rawTime);
setcolor(WHITE)
sscanf(a,"§d",&IMS);
setcolor(RED);
sscanf(a,"§d",&IMS);
setcolor(YELLOW);
sscanf(a,"§d",&IMS);
setcolor(WHITE);
delay(1000);
cleardevice();
getch();
closegraph();
}