Advertisement
Miki28072000

Untitled

Nov 16th, 2018
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include<string.h>
  3. using namespace std;
  4. char aux[251];
  5. int main()
  6. { char s[251],c[2];
  7. int i=0;
  8. cin.get(s,251);
  9. while (i<strlen(s))
  10. {if(strchr("aeiou",s[i])!=NULL)
  11. {strcpy(aux,s+i+1);
  12. c[0]=s[i]-32;
  13. c[1]=NULL;
  14. strcpy(s+i+1,c);
  15. strcpy(s+i+2,aux);
  16. i=i+2;}
  17. else
  18. i++;
  19.  
  20. }
  21. cout<<s;}
  22.  
  23.  
  24.  
  25. varianta 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement