Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char s[101], v[]="aeiou",aux[101];
- int main()
- {
- int i;
- cin.getline(s,101);
- for(i=0;i<strlen(s);i++)
- {
- if(strchr(v,s[i])!=0)
- {
- strcpy(aux,s+i+1);
- s[i+1]='*';
- strcpy(s+i+2,aux);
- }
- }
- cout<<s<<" ";
- }
Add Comment
Please, Sign In to add comment