inserting charcters in a string
hello, i want to know how to put a '#' after a lower-case character sequence with the first letter being a vogal
this is what i did:
Code:
int i=0;
int j=0;
int vogals[]="aeiou";
for(i=0; i<strlen(input); i++) {
for(j=0; j<strlen(vogals); j++) {
if(input[i] == vogals[j]){
input[i] = '#';
}
}
}
this is what porogram do:
abcd245ofg -> #bcd245#fg
i also can do this: ->a#cd245o#g with input[i+1]='#'
the program should do this: ->abcd#245ofg#
I've tried lots of stuff but i coulnd't do it
if somebody can help i will apreciate
thanks, Calavera