Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<fstream>
- #include<stdio.h>
- #include <string.h>
- using namespace std;
- int main()
- {char text[200],c[200];
- int n,i,j,nr,max=0;
- ifstream f1("vocmax.i");
- ofstream f2("vocmax.o");
- {
- f1>>n;
- for(i=1;i<=n;i++)
- {
- f1.get(text,200);
- nr=0;
- for(j=0;j<strlen(text);j++)
- if(strchr("aeiou",text[i])!=NULL)
- nr++;
- if(max<nr)
- {
- max=nr;
- strcpy(c,text);
- }
- }
- f2<<c;
- }
- f2.close();
- f1.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement