score initial fini
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <graph.h>
|
||||
#include <stdio.h>
|
||||
#include "ajout_score.h"
|
||||
|
||||
|
||||
/*int main(unsigned int compteur) {
|
||||
@@ -44,25 +45,12 @@ void ajout_score(int* compteur) {
|
||||
|
||||
sprintf(a, "%d", *compteur);
|
||||
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(10,10,1450,840);
|
||||
|
||||
RemplirRectangle( 1241, 600, 195, 80);
|
||||
|
||||
EcrireTexte(1250, 600, a, 2);
|
||||
|
||||
Touche();
|
||||
FermerGraphique();
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
|
||||
int *compteur = NULL;
|
||||
compteur = malloc(sizeof(int));
|
||||
*compteur = 0;
|
||||
ajout_score(compteur);
|
||||
free(compteur);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user