title: C++ How to find char in a char array by using find function?
body: <p>How to find char in a char array by using find function? If I just for loop the vowel then I could have gotten the answer but I'm asked to use std::find..  Thanks. </p>
  
  <pre><code>bool IsVowel (char c) { 
  
      char vowel[] = {'a', 'e', 'i', 'o', 'u'};            
      bool rtn = std::find(vowel, vowel + 5, c);
  
      std::cout &lt;&lt; " Trace : " &lt;&lt; c  &lt;&lt; " " &lt;&lt; rtn &lt;&lt; endl;
  
      return rtn; 
   }
  </code></pre>