From d6b831736cf6ae226b0af2e22940500aa1ba81d0 Mon Sep 17 00:00:00 2001 From: pierre-geeraert Date: Sun, 11 Dec 2016 14:57:12 +0100 Subject: [PATCH] add history function you have to add datein this programm --- lecture.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lecture.c b/lecture.c index 9c30072..8f08d82 100644 --- a/lecture.c +++ b/lecture.c @@ -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); }