Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>
- using namespace std;
- int main()
- {
- char s[21],*p, voc[]="aeiou",m[21];
- cout<<"dati sirul ";
- cin.get(s,50);
- cin.get();
- int ok=1;
- for(int i=0;i<strlen(s);i++)
- if(strchr(voc,s[i]))
- ok=0;
- m[0]=0;
- strncat(m,s,i-1);
- strcat(m,s+i);
- strcpy(s,m);
- ok=1;
- for(i=strlen(s)-1;i>=0;i--)
- if(strchr(voc,s[i]))
- ok=0;
- m[0]=0;
- strncat(m,s,i+1);
- strcat(m,s+i+2);
- strcpy(s,m);
- cout<<s;}
Add Comment
Please, Sign In to add comment