title: Declaring two variable in a conditional?
body: <p>Can I declare two variables in a conditional in C++. The compiler gave an error but still I think I should get an opinion:</p>
  
  <pre><code>int main()
  {
      double d1 = 0;
      if((double d2 = d1) || (double d3 = 10))
          cout &lt;&lt; "wow" &lt;&lt; endl;
      return 0;
  }
  </code></pre>