title: Initializing multiple variables in one line in C++
body: <p>This is my code for a program that is supposed to prompt the user to provide a single letter, and then reports whether the letter is a vowel or consonant:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main() {
      cout &lt;&lt; "input a single letter";
      int var; 
      cin &gt;&gt; var;
      int vowel = 'a','e','i','o','u';
      int consonant = 'b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z'
      if (var == vowel) {
          cout &lt;&lt; "vowel";
      } else if (var == consonant) {
          cout &lt;&lt; "consonant";
      } else if (var != vowel &amp;&amp; var != consonant) {
          cout &lt;&lt; "Error";
      }
      return 0;
  }
  </code></pre>
  
  <p>I am very very new at C++, and am trying to learn why I'm getting an error message.</p>