What's the difference between function(myVar) and (function)myVar?
<p><em>This is yet another one of those questions I'd like to be able to tag 'newbie'.</em></p>

<p>I'm going through the full tutorial at cplusplus.com, coding and compiling each example manually. Regularly, I stumble upon something that leaves me perplexed.</p>

<p>I am currently learning this section: <a href="http://www.cplusplus.com/doc/tutorial/structures/" rel="nofollow">http://www.cplusplus.com/doc/tutorial/structures/</a> . There are some subtleties that could easily be overlooked by only reading the tutorial. The advantage of typing everything by hand is that such details do stand out.</p>

<p>In the above page, there are two sample programs. One has this line:  </p>

<pre><code>stringstream(mystr) &gt;&gt; yours.year;
</code></pre>

<p>The other one has this line:  </p>

<pre><code>(stringstream) mystr &gt;&gt; pmovie-&gt;year;
</code></pre>

<p>What I don't understand is the difference (if any) between <code>function (myVar) = x;</code> and <code>(function) myVar = x;</code>.</p>

<p>I am not doing the whole tutorial in sequential order. I checked but didn't find this addressed anywhere, though I may have missed it.</p>

<ul>
<li>Is there a difference?  </li>
<li>Is there a preferred way to do it one way rather than the other?  </li>
</ul>
