compteur score opérationel
This commit is contained in:
parent
7ecb0e8c39
commit
6d4ab18cf5
@ -40,9 +40,9 @@ void ajout_score(int* compteur) {
|
|||||||
char a[20];
|
char a[20];
|
||||||
|
|
||||||
|
|
||||||
&compteur = &compteur + 5;
|
*compteur = *compteur + 5;
|
||||||
|
|
||||||
sprintf(a, "%d", &compteur);
|
sprintf(a, "%d", *compteur);
|
||||||
|
|
||||||
InitialiserGraphique();
|
InitialiserGraphique();
|
||||||
CreerFenetre(10,10,1450,840);
|
CreerFenetre(10,10,1450,840);
|
||||||
@ -57,8 +57,9 @@ int main(void) {
|
|||||||
|
|
||||||
int *compteur = NULL;
|
int *compteur = NULL;
|
||||||
compteur = malloc(sizeof(int));
|
compteur = malloc(sizeof(int));
|
||||||
&compteur = 0;
|
*compteur = 0;
|
||||||
ajout_score(compteur);
|
ajout_score(compteur);
|
||||||
|
free(compteur);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user