wazaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

This commit is contained in:
thibault62
2016-12-15 11:26:39 +01:00
committed by GitHub
parent 202a662cab
commit a80fed1284
+13 -4
View File
@@ -1,11 +1,19 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include <unistd.h>
int main(void) int main(void)
{ {
FILE* history = NULL;
history = fopen("/home/pierre/Documents/doc/history.txt", "a");
//fprintf(history,"date :");
system("echo $(date +%D) >> /home/pierre/Documents/doc/history.txt");
system("gcc -o heure /home/pierre/Documents/doc/heure.c;./heure");
fprintf(history," dynamique \n-----------\n");
fclose(history);
system("clear"); system("clear");
FILE* heure=NULL; FILE* heure=NULL;
heure=fopen("heure","w"); heure=fopen("heure","w");
@@ -38,7 +46,7 @@ int l=0;
h=instant.tm_hour; h=instant.tm_hour;
m=instant.tm_min; m=instant.tm_min;
s=instant.tm_sec; s=instant.tm_sec;
switch (random) /*switch (random)
{ {
case 0 : case 0 :
{ {
@@ -55,7 +63,7 @@ switch (random)
break; break;
} }
} }*/
while (j<10) while (j<10)
{ {
printf("\n"); printf("\n");
@@ -89,7 +97,7 @@ fprintf(heure,"%d",s1);
} }
printf("%d\n",s); printf("%d\n",s);
fprintf(heure,"%d\n",s); fprintf(heure,"%d\n",s);
system("XTrem*faceSize:10"); //system("XTrem*faceSize:10");
while (l<10) while (l<10)
{ {
printf("\n"); printf("\n");
@@ -109,6 +117,7 @@ while (i<10)
sleep(1); sleep(1);
i++; i++;
} }
sleep(1);
system("clear"); system("clear");
} }
return 0; return 0;