title: C++, ternary operator, std::cout
body: <p>How to write the following condition with a ternary operator using C++</p>
  
  <pre><code>int condition1, condition2, condition3;
  int / double result; //int or double
  ....
  std::cout &lt;&lt; ( condition1: result1 : "Error" ) 
            &lt;&lt; ( condition2: result2 : "Error" )
            &lt;&lt; ( condition3: result3 : "Error")...;
  </code></pre>