1 2 3 4 5 6 7 8 9 10 11 12 13 14
| /* Choix des symboles */
void symb(char *jaune, char *rouge) {
do {
printf(" \n Quel sera le symbole du joueur jaune? \n ");
scanf(" %c", &jaune);
printf(" \n Quel sera le symbole du joueur rouge? \n ");
scanf(" %c", &rouge);
}
while(rouge == jaune);
}
/* Fin choix des symboles */ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
/* Programme principale */
int main(void) {
int choixdebut;
char sbJJ, sbJR;
char joueur;
char grille[7][15];
choixdebut = debut();
if (choixdebut == 1) {
init(grille);
symb(&sbJJ, &sbJR);
joueur = choixjoueur();
printf(" %c %c %c \n\n", sbJJ, sbJR, joueur);
affichage(grille);
}
} |
J'ai fais ce que tu m'a dis, mais quand je fais mon
printf(" %c %c %c \n\n", sbJJ, sbJR, joueur);
il ne m'affiche jamais les caractères que je donne...
Partager