// or_01.cpp -- how to use the OR logical operator
#include <iostream>
#include <cstring>

int main()
{
    using namespace std;
    string word = "";    // initializing the word string
    int i = 0;
    int vowelCount = 0;

    cout << "Please enter a long word: ";
    cin >> word;

    // while loop to go through every character in the string
    // until it reached the end of the word
    while(word[i] != '\0') {

      // if the character is an 'a', 'e', 'i', 'o' or 'u' then
      // add one to the vowel counter. no sometimes ys....
      if (word[i]=='a' || word[i]=='e' || word[i]=='i' || word[i]=='o' || word[i]=='u') 
	vowelCount++;
 
      i++;
    }

    cout << "\nYour word had " << vowelCount << " vowels in it.\n";

}

