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