SAE11_2021/main.c

26 lines
580 B
C
Raw Normal View History

2022-11-22 15:55:00 +01:00
#include<stdio.h>
#include<stdlib.h>
#include<graph.h>
#include "images.h"
#include "menu.h"
#include "main.h"
#include "temps.h"
/*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;
int test=menu();
char tableautemps[50];
2022-11-30 17:23:59 +01:00
while(1){
coucou=tirage_aleatoire();
while(tirage_aleatoire()!=1){
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
}
}
FermerGraphique();
return EXIT_SUCCESS;
2022-11-22 15:55:00 +01:00
}