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:13:06 +01:00
|
|
|
int temps;
|
2022-11-29 17:30:12 +01:00
|
|
|
int test=menu();
|
2022-11-30 17:13:06 +01:00
|
|
|
char tableautemps[50];
|
|
|
|
while(tirage_aleatoire()!=1){
|
|
|
|
temps=timer();
|
|
|
|
printf("%d",temps);
|
|
|
|
snprintf(tableautemps,50,"%d secondes écoulées",temps);
|
|
|
|
EcrireTexte(500,100,tableautemps,1);
|
|
|
|
}
|
2022-11-29 17:30:12 +01:00
|
|
|
tirage_aleatoire();
|
2022-11-22 16:03:31 +01:00
|
|
|
FermerGraphique();
|
|
|
|
return EXIT_SUCCESS;
|
2022-11-22 15:55:00 +01:00
|
|
|
}
|