upgrade things to finish static
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <time.h>//utile pour la creation d'un nombre aleatoire
|
||||
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "main.c"
|
||||
|
||||
|
||||
/*fonction qui permet de creer le random en fonction des resultats precedents*/
|
||||
@@ -15,11 +11,7 @@
|
||||
return (_imin + (rand () % (_imax-_imin+1)));//explication ???
|
||||
}
|
||||
|
||||
int im_1=0;
|
||||
int im_2=0;
|
||||
int im_3=0;
|
||||
int im_4=0;
|
||||
int im_5=0;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -46,7 +38,6 @@ system("gcc -o heure-vrai heure-vrai.c;./heure-vrai");
|
||||
int linecounter = 0;//compteur de ligne
|
||||
|
||||
|
||||
|
||||
srand (time (NULL));//créer nbr alea entre 1 et 5 pour choisir entre les differentes images
|
||||
nbrAlea = Random (1,5);
|
||||
|
||||
@@ -57,29 +48,24 @@ system("gcc -o heure-vrai heure-vrai.c;./heure-vrai");
|
||||
{case 1:
|
||||
fichier = fopen("image1", "r");
|
||||
fprintf(history," je suis en pause");
|
||||
im_1++
|
||||
break;
|
||||
case 2:
|
||||
fichier = fopen("image2", "r");
|
||||
fprintf(history," tetris");
|
||||
im_2++
|
||||
break;
|
||||
case 3:
|
||||
fichier = fopen("image3", "r");
|
||||
fprintf(history," start to continue");
|
||||
im_3++
|
||||
break;
|
||||
case 4:
|
||||
fichier = fopen("image4", "r");
|
||||
fprintf(history," psychédélique");
|
||||
im_4++
|
||||
break;
|
||||
case 5:
|
||||
fichier = fopen("image5", "r");
|
||||
fprintf(history," jul");
|
||||
break;
|
||||
default:
|
||||
im_5++
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user