Résolu Mini programme

Statut
N'est pas ouverte pour d'autres réponses.

AstateGfx

Premium
Inscription
27 Janvier 2013
Messages
3 158
Réactions
176
Points
17 571
voilà , j'ai codé vite fais un programme qui supprime les voyelles d'une chaîne mais le souci c'est qu'il retroune toujours une chaine vide , sa m'a fait trop chié de perdre du temps dans un truc bidon ...

Code:
#include "stdio.h"
#include "string.h"
#define MAX_STRING_LENGHT 100

char text[100];
char voyals[] = {'a','e','y','u','i','o'};


void SupVoyelles(){
    
    for(int i=0;i<strlen(text);i++){

        for (int y=0;y<sizeof(voyals);y++){
            
            if (text[i] == voyals[y])
                
                text[i] = 0 ;
        }
        break;
    printf("%s",text);
    }
    
    

}
void main(void){
    
    
    scanf("%s",&text);
    SupVoyelles();
    
    
}
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut