SelinD

v79s2e5

Mar 4th, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char s[101], v[]="aeiou",aux[101];
  5. int main()
  6. {
  7. int i;
  8. cin.getline(s,101);
  9. for(i=0;i<strlen(s);i++)
  10. {
  11. if(strchr(v,s[i])!=0)
  12. {
  13. strcpy(aux,s+i+1);
  14. s[i+1]='*';
  15. strcpy(s+i+2,aux);
  16. }
  17. }
  18. cout<<s<<" ";
  19. }
Add Comment
Please, Sign In to add comment