2023-12-10 23:37:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <graph.h>
|
2023-12-12 13:52:49 +01:00
|
|
|
#include <stdio.h>
|
2023-12-12 17:27:44 +01:00
|
|
|
#include "ajout_score.h"
|
2023-12-10 23:37:44 +01:00
|
|
|
|
|
|
|
|
2023-12-12 13:52:49 +01:00
|
|
|
void ajout_score(int* compteur) {
|
|
|
|
|
|
|
|
|
|
|
|
char a[20];
|
|
|
|
|
|
|
|
|
2023-12-12 15:48:31 +01:00
|
|
|
*compteur = *compteur + 5;
|
2023-12-12 13:52:49 +01:00
|
|
|
|
2023-12-12 15:48:31 +01:00
|
|
|
sprintf(a, "%d", *compteur);
|
2023-12-12 13:52:49 +01:00
|
|
|
|
|
|
|
|
2023-12-12 17:27:44 +01:00
|
|
|
RemplirRectangle( 1241, 600, 195, 80);
|
2023-12-12 13:52:49 +01:00
|
|
|
|
2023-12-12 17:27:44 +01:00
|
|
|
EcrireTexte(1250, 600, a, 2);
|
2023-12-12 13:52:49 +01:00
|
|
|
|
2023-12-12 17:27:44 +01:00
|
|
|
|
2023-12-12 13:52:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-12-10 23:37:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|