Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[105],y[105],*p,aux[105],r[105];
- int main ()
- {
- int n,m,b,s,i,j,nr=0;
- cin.getline(x,105);
- p=strtok(x," ");
- while(p!=0)
- {
- for(i=0;i<strlen(p);i++)
- {
- if(strchr("aeiouAEUIO",x[i])!=0)
- {
- strncpy(r+nr,p+i,1);
- nr++;
- strcat(r,"*");
- nr++;
- }
- else
- {
- strncpy(r+nr,p+i,1);
- nr++;
- }
- }
- p=strtok(0," ");
- strcat(r," ");
- nr++;
- }
- cout<<r;
- return 0;
- }
- 79
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement