add history function

you have to add datein this programm
This commit is contained in:
pierre-geeraert
2016-12-11 14:57:12 +01:00
committed by GitHub
parent 8f9538110a
commit d6b831736c
+9 -2
View File
@@ -11,8 +11,14 @@
int main(int argc, char *argv[])
{
system("clear");
FILE* fichier = NULL;
/*clear the screen , open picture and history , write type of lock screen in history */
system("clear");
FILE* fichier = NULL;
FILE* history = NULL;
history = fopen("/media/groupe-tvp/b919f1b0-9122-4865-a76b-bb6386984916/doc/history.txt", "a");
fprintf(history," statique\n");
int caractereactuel = 0;//creation de notre caractere actuel
int nbrAlea;//nombre aleatoire
@@ -89,6 +95,7 @@ break;
fclose(fichier);
fclose(history);
}