Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////eliminare bac 2016
- #include <iostream>
- #include <cstring>
- int v[1000001];
- using namespace std;
- int main()
- {
- char s[256],voc[10]="aeiou";
- cin.getline(s,256);
- int k=0;
- for(int i=0;i<strlen(s);i++){
- if(s[i]!='m')
- {
- if(strchr(voc,s[i])!=NULL)
- {
- k++; ///contorizez vocalele
- }
- else{
- strcpy(s+i,s+i+1);i--;
- }
- }
- }
- if(k==0)
- cout<<"nu exista";
- else
- cout<<s;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement