2022-11-22 15:55:00 +01:00
|
|
|
#include<stdio.h>
|
|
|
|
#include<stdlib.h>
|
|
|
|
#include<graph.h>
|
|
|
|
#include "images.h"
|
2022-11-29 17:30:12 +01:00
|
|
|
#include "menu.h"
|
|
|
|
#include "main.h"
|
2022-11-30 17:13:06 +01:00
|
|
|
#include "temps.h"
|
2022-11-29 17:30:12 +01:00
|
|
|
/*faire les includes des autres parties du programme*/
|
2022-11-22 15:55:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
int main(void){
|
2022-11-30 17:23:59 +01:00
|
|
|
int temps,coucou;
|
2022-11-29 17:30:12 +01:00
|
|
|
int test=menu();
|
2022-11-30 17:13:06 +01:00
|
|
|
char tableautemps[50];
|
2022-11-30 17:23:59 +01:00
|
|
|
while(1){
|
|
|
|
coucou=tirage_aleatoire();
|
|
|
|
while(tirage_aleatoire()!=1){
|
2022-11-30 17:13:06 +01:00
|
|
|
temps=timer();
|
|
|
|
printf("%d",temps);
|
|
|
|
snprintf(tableautemps,50,"%d secondes écoulées",temps);
|
|
|
|
EcrireTexte(500,100,tableautemps,1);
|
2022-11-30 17:23:59 +01:00
|
|
|
}
|
2022-11-30 17:13:06 +01:00
|
|
|
}
|
2022-11-22 16:03:31 +01:00
|
|
|
FermerGraphique();
|
|
|
|
return EXIT_SUCCESS;
|
2022-11-22 15:55:00 +01:00
|
|
|
}
|