Varianta 79 / Subiectul 2 / Problema 5 |
#include<iostream.h> #include<string.h> void main() { char v[]="aeiouAEIOU", s[200], aux[200]; int i; cin.get(s,100); for(i=0;i<strlen(s);i++) if(strchr(v,s[i])) { strcpy(aux,s+i); strcpy(s+i+1,aux); s[i+1]='*'; } cout<<s; } |