#include <stdio.h>
#include <locale.h>
#define CHAR_LENGTH 100
int is_vowel(char);
int main0901(){
setlocale(LC_ALL,"Turkish");
// Girdi
char string[]="Godoro C/C++ E�itimi";
// ��kt�
char clean[CHAR_LENGTH];
int count=0;
// Bul
int i;
for(i=0;string[i]!='\0';i++){
if(!is_vowel(string[i])){
clean[count++]=string[i];
}
}
// S�f�rla Bitir
clean[count]='\0';
// Bas
printf("Sicim: %s \r\n",string);
printf("Temizlenmi�: %s \r\n",clean);
return 0;
}
int is_vowel(char c){
switch(c) {
case 'a':
case 'e':
case '�':
case 'i':
case 'o':
case '�':
case 'u':
case '�':
return 1;
default:
return 0;
}
}
Dosyayı İndir