1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
int main(void)
{
cree_pile(tab);
}*/
/* fonction cree_pile */
}
int cree_pile(int tab[LGMAX])
{
int entree,i=0;
char rep[3]="";
char *p_eof=NULL;
do
{
printf("Entrez un entier : ");
scanf("%d",entree);
printf("voulez-vous-continuer ?O/N\n");
if ((p_eof = fgets(rep, sizeof rep, stdin)) != NULL)
{
fclean(rep, stdin);
if (tolower((unsigned char) rep[0])=='o')
{
printf("While %c\n", rep[0]);
}
}
}
while (tolower((unsigned char) rep[0]) != 'n' && p_eof != NULL);
return EXIT_SUCCESS;
} |