title: Count no of vowels in a string
body: <p>I wrote a program to count no of vowels in a string but its not efficient or optimized code.
  Moreover it will not check caps vowels.</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  using namespace std;
  int main()
  {
  unsigned int vow_cnt=0;
  char name[15]= "sijith aeu";
  cout&lt;&lt;"Enter a name"&lt;&lt;endl;
  cin&gt;&gt;name;
  for(unsigned int i=0;i&lt;strlen(name);i++)
  { 
    if(name[i] == 'a' || name[i] == 'e'||name[i] == 'i'||name[i] == 'o'||name[i] == 'u')
    { 
     vow_cnt++;
    }
   }
  cout&lt;&lt;"vow_cnt"&lt;&lt; vow_cnt &lt;&lt; endl;
  }
  </code></pre>