ha j´ai -encore ! - un autre problème...
j´ai fait la suite du prog et je voudrait que le mec valide si il veut ce mot ou si il veut changer alors j´ai fait un switch :
#include < stdio.h>
int main()
{
char mot[32];
char choix;
debut :
printf("écrivez un mot\n");
getchar();
scanf("%s", mot);
printf("le mot que vous avez choisi est %s\n",mot);
printf("Vous voulez garder ce mot ? Oui / Non");
choix = getchar();
getchar();
switch(choix)
{
case ´n´ : goto debut;
case ´o´ : printf("Le mot est %s", mot);
break;
default : goto debut;
}
getchar();
printf("Appuyez sur entrée pour terminer");
getchar();
return 1;
}
mais le problème c´est que même quand j´écrit o il me fait recommencer...
alors c´est que j´ai mal utilisé break ou une autre erreur... quelqu´un peut m´aider ?