Boolean function always returning true : <p>I am taking a course on Udemy to learn C++, and I am following along with the professor. </p>

<p>This is the exact code that is being used in the class. 
You pass in a letter, and it tells you whether or not it is a vowel. However, it is saying every letter is a vowel. For example, when I pass in 'b', it says it is a vowel.</p>

<p>Any clue?</p>

<hr>

<pre><code>#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

bool isVowel(char letter) {
    if ((letter == 'a') || (letter == 'e') || (letter = 'i') || 
       (letter = 'o') || (letter = 'u'))
    return true;
else
    return false;
}

int main() {

    char let;
    cout &lt;&lt; "Enter a letter: ";
    cin &gt;&gt; let;

    if (isVowel(let))
        cout &lt;&lt; let &lt;&lt; " is a vowel." &lt;&lt; endl;
    else
        cout &lt;&lt; let &lt;&lt; " is a consonant." &lt;&lt; endl;

    return 0;
}
</code></pre>

<hr>

<p>I get the same problem using both codeblocks and xcode.</p>

<p>Thanks</p>
