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