a tiny but stupid quesion on C++
<p>I declared an <code>int</code> variable like this,</p>

<p><code>int temp1 = -3;</code></p>

<p>How can I assign the int value <code>3</code> to <code>temp2</code>?</p>

<p>I can only find the method as this,</p>

<pre><code>If (temp1 &lt; 0){
    temp2 = 0 - temp1;
}
</code></pre>

<p>Is there a good method to approach this? </p>
