Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <Windows.h>
- int main()
- {
- int x,y,i;
- time_t vr;
- struct tm vreme;
- randomize();
- do{
- x=random(66);
- }while(x==0);
- do{
- y=random(24);
- }while(y==0);
- gotoxy(x,y);
- printf("%c",218);
- for(i=1;i<=13;i++) printf("%c",196);
- printf("%c",191);
- gotoxy(x,y+1);
- printf("%c",179);
- for(i=1;i<=13;i++) printf(" ");
- printf("%c",179);
- gotoxy(x,y+2);
- printf("%c",192);
- for(i=1;i<=13;i++) printf("%c",196);
- printf("%c",217);
- while(1){
- time(&vr);
- vreme=*localtime(&vr);
- gotoxy(x+1,y+1);
- printf(" "); // brisanje reci
- gotoxy(x+1,y+1);
- printf("%d. %d. %d.",vreme.tm_mday,1+vreme.tm_mon,1900+vreme.tm_year);
- Sleep(500);
- gotoxy(x+1,y+1);
- printf("PROGRAMIRANJE");
- Sleep(500);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement