Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- #define NMAX 100
- #define LENMAX 256
- int voc(char s[])
- {
- for (int i = 0; s[i] != NULL; i++)
- if (!strchr("aeiou", s[i]))
- return 0;
- return 1;
- }
- void read(int& n, char c[][LENMAX])
- {
- cin >> n;
- for (int i = 0; i < n; i++)
- cin >> c[i];
- }
- char c[NMAX][LENMAX];
- int n;
- int main()
- {
- read(n, c);
- int k = 0;
- for (int i = 0; i < n; i++)
- if (voc(c[i]))
- k++;
- cout << k;//*/
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement