Advertisement
D00mguy

Char04

Oct 15th, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cstring>
  4. using namespace std;
  5. ifstream f ("i.in");
  6. int main()
  7. {
  8. char s[101]=" ",aux[101];
  9. int i;
  10. f.get(s,101);
  11. for(i=0;s[i];i++)
  12. if(strchr("aeiou",s[i]))
  13. {
  14. strcpy(aux,s+i);
  15. strcpy(s+i+1,aux);
  16. i++;
  17. }
  18. cout<<s;
  19. return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement