title: Output and Input at Same Line using IOSTREAM
body: <p>I want to use the <em>iostream</em> input and output operators in the same statement, not to be nicer to the user but the look I was trying not successfully obtained.</p>
  
  <p>Code fragment:</p>
  
  <pre><code>int value = 0;
  std::cout &lt;&lt; "Number 1: " &lt;&lt; std::cin &gt;&gt; value &lt;&lt; std::endl;
  </code></pre>
  
  <p>Is there any way to do this using only cin cout?</p>