Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include<fstream>
- using namespace std;
- int main()
- {
- char s[250];
- ifstream fin ("intrare.txt");
- ofstream fout ("iesire.txt");
- int k = 0,ok=0;
- while(!fin.eof())
- {
- fin.get(s,249);
- fin.get();
- ok=0;
- for(int i=0; i < strlen(s)&&!ok; i++)
- {
- if (strchr("aeiouAEIOU", s[i]))
- {
- k++;
- ok=1;
- }
- }
- }
- fout<<k;
- fin.close();
- fout.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement