Basic If/Else if in C++
<p>I've just started learning C++ - and I have a Quick Question.</p>

<p>Using if/else if statements for more than one variable at a time. How do I have them separated?</p>

<p>Ex. </p>

<pre><code>float a, b, c, d, e;

if (a &gt; 0 &amp;&amp; b &gt; 0)
    cout &lt;&lt; "blah blah";
else if (a &gt; 0)
    cout &lt;&lt; "blah blah a";
else if (b &gt; 0)
    cout &lt;&lt; "blah blah b";


if (c &gt; 0 &amp;&amp; d &gt; 0)
    cout &lt;&lt; "wowww";
else if (c &gt; 0)
    cout &lt;&lt; woww c";
else if (d &gt; 0)
    cout &lt;&lt; wowww d";
</code></pre>

<p>It errors, at the <code>else if (c&gt;0)</code>.</p>

<p>How do I separate the two clauses?</p>
