score fini

This commit is contained in:
2023-12-13 17:00:25 +01:00
parent 0bb700e33c
commit 0b8b3486c1
6 changed files with 34 additions and 61 deletions

View File

@@ -7,34 +7,6 @@
#include "ajout_score.h"
/*int main(unsigned int compteur) {
compteur = compteur + 5;
char* a= (int) compteur;
EcrireTexte(1250, 600, a, 2);
}*/
/*
int main() {
int compteur = 10;
compteur = compteur + 5;
char a[20];
sprintf(a, "%d", compteur);
EcrireTexte(1250, 600, a, 2);
return 0;
}
*/
void ajout_score(int* compteur) {
@@ -53,30 +25,7 @@ void ajout_score(int* compteur) {
}
/*
int main() {
int compteur = 0;
char key;
printf("Appuyez sur ESPACE pour ajouter 5 (Appuyez sur 'q' pour quitter)\n");
while (1) {
key = getchar();
if (key == ' ') {
compteur += 5;
printf("Compteur : %d\n", compteur);
} else if (key == 'q' || key == 'Q') {
printf("Sortie du programme.\n");
break;
}
}
return 0;
}
*/