How to use cin "as a parameter" in a switch statement : <p>I want to be able to create a switch statement using cin, without having to create a variable to store the value inputed. For example:</p>

<pre><code>switch(cin){
case 1: std::cout &lt;&lt; "Hello World";
break;
default:
break;
}
</code></pre>
